diff options
author | Justus Winter <[email protected]> | 2016-06-13 16:35:47 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-16 12:07:41 +0000 |
commit | a852f99a0ac9dc7f7493b403f811f5f7518fae40 (patch) | |
tree | 0c3073e2a00fdb9847421951b9fc30d67359e234 /lang/python/helpers.c | |
parent | python: Fix license. (diff) | |
download | gpgme-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 '')
-rw-r--r-- | lang/python/helpers.c | 1 |
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) |