python: Use the correct function to free buffers.

* lang/python/gpgme.i (char *): Free using 'gpgme_free'.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-02-14 16:16:05 +01:00
parent fdc4e33dc3
commit 9fc9533c28
No known key found for this signature in database
GPG Key ID: DD1A52F9DA8C9020

View File

@ -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 [] {