diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2017-04-17 02:44:37 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2017-04-17 02:44:37 +0200 |
commit | b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a (patch) | |
tree | 99532ae5883dfc4d0271b3f990744a57c6787b59 /tests/openpgp/fake-pinentry.c | |
parent | g10: Fix parse_ring_trust. (diff) | |
download | gnupg2-b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a.tar.xz gnupg2-b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a.zip |
tests: Minor memory fix.
* tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests/openpgp/fake-pinentry.c')
-rw-r--r-- | tests/openpgp/fake-pinentry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/openpgp/fake-pinentry.c b/tests/openpgp/fake-pinentry.c index 6585b01dc..fb0c6ae1b 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; } |