summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/mactoolboxglue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c
index 0aa2cfd..26a1308 100644
--- a/Python/mactoolboxglue.c
+++ b/Python/mactoolboxglue.c
@@ -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;
}