From 249f6b1bf4d735c722441aa0c02c10f6f11637a1 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 11 Jul 2006 16:44:25 +0000 Subject: [PATCH] Add missing Py_DECREFs. --- Python/mactoolboxglue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 0aa2cfda37..26a13083f3 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; } -- 2.50.1