]> granicus.if.org Git - python/commitdiff
v is already checked for NULL, so just DECREF it
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 2 Aug 2006 06:15:10 +0000 (06:15 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 2 Aug 2006 06:15:10 +0000 (06:15 +0000)
Modules/spwdmodule.c

index b7bf20e6d8a4a157d7850df5dc0b3e1a75bdb680..d3f309afa8fbad399e270dca23d8f053508d449a 100644 (file)
@@ -91,7 +91,7 @@ static PyObject *mkspent(struct spwd *p)
 #undef SETI
 
        if (PyErr_Occurred()) {
-               Py_XDECREF(v);
+               Py_DECREF(v);
                return NULL;
        }