mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
agent: Fix a memory leak.
* agent/findkey.c (read_key_file): Free BUF. -- Fixes-commit: 434a641d40cbff82beb9f485e0adca72419bfdf2 Signed-off-by: Sorah Fukumori <her@sorah.jp>
This commit is contained in:
parent
e0a2e9e9c5
commit
137481fa10
@ -1184,6 +1184,7 @@ read_key_file (ctrl_t ctrl, const unsigned char *grip,
|
|||||||
}
|
}
|
||||||
|
|
||||||
leave:
|
leave:
|
||||||
|
xfree (buf);
|
||||||
if (!err && r_keymeta)
|
if (!err && r_keymeta)
|
||||||
*r_keymeta = pk;
|
*r_keymeta = pk;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user