summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/fake-pinentry.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-04-17 02:44:37 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2017-04-17 02:44:37 +0200
commitb9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a (patch)
tree99532ae5883dfc4d0271b3f990744a57c6787b59 /tests/openpgp/fake-pinentry.c
parentg10: Fix parse_ring_trust. (diff)
downloadgnupg2-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.c2
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;
}