Add missing Py_DECREFs.

This commit is contained in:
Thomas Heller 2006-07-11 16:44:25 +00:00
parent dd82734aa1
commit 249f6b1bf4
1 changed files with 2 additions and 1 deletions

View File

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