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:
parent
3bacce03e6
commit
a852f99a0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user