tests: Minor memory fix.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:44:37 +0000 (09:44 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:44:37 +0000 (09:44 +0900)
* tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tests/openpgp/fake-pinentry.c

index 6585b01..fb0c6ae 100644 (file)
@@ -126,6 +126,8 @@ get_passphrase (const char *fname)
                fname, fname_new, strerror (errno));
       exit (1);
     }
+
+  free (fname_new);
   return passphrase;
 }