Fix typo in error checking spotted by Just...
This commit is contained in:
parent
74427e51d7
commit
e9eec54798
@ -982,7 +982,7 @@ PyFile_WriteObject(v, f, flags)
|
||||
return -1;
|
||||
}
|
||||
args = Py_BuildValue("(O)", value);
|
||||
if (value == NULL) {
|
||||
if (args == NULL) {
|
||||
Py_DECREF(value);
|
||||
Py_DECREF(writer);
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user