From a852f99a0ac9dc7f7493b403f811f5f7518fae40 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 13 Jun 2016 18:35:47 +0200 Subject: [PATCH] python: Fix exception leak. * lang/python/helpers.c (pygpgme_stash_callback_exception): Fix leak. Signed-off-by: Justus Winter --- lang/python/helpers.c | 1 + 1 file changed, 1 insertion(+) 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)