]> granicus.if.org Git - python/commitdiff
Add missing Py_DECREFs.
authorThomas Heller <theller@ctypes.org>
Tue, 11 Jul 2006 16:44:25 +0000 (16:44 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 11 Jul 2006 16:44:25 +0000 (16:44 +0000)
Python/mactoolboxglue.c

index 0aa2cfda3701b5cfbc3b97b88e2e070d2cec8bf8..26a13083f367913358df95273d975bbf6fd452d3 100644 (file)
@@ -60,8 +60,9 @@ PyMac_StrError(int err)
                        strncpy(buf, input, sizeof(buf) - 1);
                        buf[sizeof(buf) - 1] = '\0';
                }
+               Py_DECREF(rv);
        }
-       
+       Py_XDECREF(m);
        return buf;
 }