mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Fix leak involving BuildValue("...O...").
This commit is contained in:
parent
ebee0256f3
commit
9c6ba5e901
@ -492,9 +492,13 @@ binascii_a2b_hqx(self, args)
|
||||
Py_DECREF(rv);
|
||||
return NULL;
|
||||
}
|
||||
_PyString_Resize(&rv, (bin_data - (unsigned char *)PyString_AsString(rv)));
|
||||
if ( rv )
|
||||
return Py_BuildValue("Oi", rv, done);
|
||||
_PyString_Resize(
|
||||
&rv, (bin_data - (unsigned char *)PyString_AsString(rv)));
|
||||
if (rv) {
|
||||
PyObject *rrv = Py_BuildValue("Oi", rv, done);
|
||||
Py_DECREF(rv);
|
||||
return rrv;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user