[Pkg-gnupg-commit] [gpgme] 169/412: python: Fix exception leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit a852f99a0ac9dc7f7493b403f811f5f7518fae40
Author: Justus Winter <justus at g10code.com>
Date:   Mon Jun 13 18:35:47 2016 +0200

    python: Fix exception leak.
    
    * lang/python/helpers.c (pygpgme_stash_callback_exception): Fix leak.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 lang/python/helpers.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lang/python/helpers.c b/lang/python/helpers.c
index 0033ef0..810423d 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list