[Pkg-gnupg-commit] [gnupg2] 77/132: tests: Minor memory fix.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:44 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gnupg2.

commit b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Apr 17 09:44:37 2017 +0900

    tests: Minor memory fix.
    
    * tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 tests/openpgp/fake-pinentry.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/openpgp/fake-pinentry.c b/tests/openpgp/fake-pinentry.c
index 6585b01..fb0c6ae 100644
--- a/tests/openpgp/fake-pinentry.c
+++ b/tests/openpgp/fake-pinentry.c
@@ -126,6 +126,8 @@ get_passphrase (const char *fname)
                fname, fname_new, strerror (errno));
       exit (1);
     }
+
+  free (fname_new);
   return passphrase;
 }
 

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



More information about the Pkg-gnupg-commit mailing list