python: Fix exception leak.

* lang/python/helpers.c (pygpgme_stash_callback_exception): Fix leak.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-06-13 18:35:47 +02:00
parent 3bacce03e6
commit a852f99a0a

View File

@ -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)