Changeset 3cd646b2bf17…
Parent 55ea298e8f75…
by
Changes to one file · Browse files at 3cd646b2bf17 Showing diff from parent 55ea298e8f75 Diff from another changeset...
@@ -260,6 +260,7 @@
if (mode == Py_None) {
result = Py_False;
+ Py_INCREF(result);
} else {
lmode = PyInt_AsLong(mode);
if (lmode == -1 && PyErr_Occurred()) {
@@ -268,7 +269,6 @@ }
result = PyBool_FromLong(S_ISDIR((mode_t)lmode));
}
- Py_INCREF(result);
Py_DECREF(mode);
return result;
}
|
Loading...