mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: Fix a memory leak.
* agent/findkey.c (read_key_file): Free BUF.
--
Fixes-commit: 434a641d40
Signed-off-by: Sorah Fukumori <her@sorah.jp>
This commit is contained in:
parent
e0a2e9e9c5
commit
137481fa10
1 changed files with 1 additions and 0 deletions
|
@ -1184,6 +1184,7 @@ read_key_file (ctrl_t ctrl, const unsigned char *grip,
|
|||
}
|
||||
|
||||
leave:
|
||||
xfree (buf);
|
||||
if (!err && r_keymeta)
|
||||
*r_keymeta = pk;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue