cpython: 549cd815bf8d (original) (raw)
Mercurial > cpython
changeset 86720:549cd815bf8d
Issue #18408: Fix error handling in PyBytes_FromObject() _PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL. [#18408]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Tue, 29 Oct 2013 03:14:22 +0100 |
parents | 4749c3ac0654 |
children | 9d9371d4ff7b |
files | Objects/bytesobject.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-)[+] [-] Objects/bytesobject.c 3 |
line wrap: on
line diff
--- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -2660,9 +2660,8 @@ PyBytes_FromObject(PyObject *x) return new; error: