[Pkg-gnupg-commit] [gpgme] 70/132: python: Use the correct function to free buffers.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:01:26 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gpgme.

commit 9fc9533c2835ec53c4fd4f822b09e9fec14626d0
Author: Justus Winter <justus at g10code.com>
Date:   Tue Feb 14 16:16:05 2017 +0100

    python: Use the correct function to free buffers.
    
    * lang/python/gpgme.i (char *): Free using 'gpgme_free'.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 lang/python/gpgme.i | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i
index 792567f..dc691dd 100644
--- a/lang/python/gpgme.i
+++ b/lang/python/gpgme.i
@@ -111,7 +111,7 @@
 }
 
 /* Release returned buffers as necessary.  */
-%typemap(newfree) char * "free($1);";
+%typemap(newfree) char * "gpgme_free($1);";
 %newobject gpgme_data_release_and_get_mem;
 
 %typemap(arginit) gpgme_key_t [] {

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