aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/helpers.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-13 16:35:47 +0000
committerJustus Winter <[email protected]>2016-06-16 12:07:41 +0000
commita852f99a0ac9dc7f7493b403f811f5f7518fae40 (patch)
tree0c3073e2a00fdb9847421951b9fc30d67359e234 /lang/python/helpers.c
parentpython: Fix license. (diff)
downloadgpgme-a852f99a0ac9dc7f7493b403f811f5f7518fae40.tar.gz
gpgme-a852f99a0ac9dc7f7493b403f811f5f7518fae40.zip
python: Fix exception leak.
* lang/python/helpers.c (pygpgme_stash_callback_exception): Fix leak. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/helpers.c')
-rw-r--r--lang/python/helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python/helpers.c b/lang/python/helpers.c
index 0033ef02..810423d0 100644
--- a/lang/python/helpers.c
+++ b/lang/python/helpers.c
@@ -122,6 +122,7 @@ static void pygpgme_stash_callback_exception(PyObject *weak_self)
}
else
PyObject_SetAttrString(self, EXCINFO, excinfo);
+ Py_DECREF(excinfo);
}
PyObject *pygpgme_raise_callback_exception(PyObject *self)