1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

tests: Minor memory fix.

* tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2017-04-17 09:44:37 +09:00
parent 256e861bce
commit b9440aa369

View File

@ -126,6 +126,8 @@ get_passphrase (const char *fname)
fname, fname_new, strerror (errno));
exit (1);
}
free (fname_new);
return passphrase;
}