[Pkg-gnupg-commit] [gpgme] 269/412: tests: Fix memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:27:01 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 04f994d5db6db0575dc73c2356c7d51424e2d9fe
Author: Justus Winter <justus at g10code.com>
Date:   Wed Aug 10 10:37:31 2016 +0200

    tests: Fix memory leak.
    
    * tests/gpg/t-encrypt-mixed.c (main): Free 'text2'.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/gpg/t-encrypt-mixed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gpg/t-encrypt-mixed.c b/tests/gpg/t-encrypt-mixed.c
index 28d8aa3..6ad976a 100644
--- a/tests/gpg/t-encrypt-mixed.c
+++ b/tests/gpg/t-encrypt-mixed.c
@@ -120,6 +120,7 @@ main (int argc, char *argv[])
     }
 
   gpgme_key_unref (key[0]);
+  free (text2);
   gpgme_data_release (out);
   gpgme_release (ctx);
   return 0;

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