mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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:
parent
256e861bce
commit
b9440aa369
@ -126,6 +126,8 @@ get_passphrase (const char *fname)
|
|||||||
fname, fname_new, strerror (errno));
|
fname, fname_new, strerror (errno));
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free (fname_new);
|
||||||
return passphrase;
|
return passphrase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user