1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-19 14:27:02 +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:
Sorah Fukumori 2025-01-14 11:01:05 +09:00 committed by NIIBE Yutaka
parent e0a2e9e9c5
commit 137481fa10
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -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