diff options
author | Sorah Fukumori <her@sorah.jp> | 2025-01-14 03:01:05 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2025-01-14 03:01:05 +0100 |
commit | 137481fa1002c417cd2c0661b9eefd893b0149d3 (patch) | |
tree | 19aff76392305a08cd4a1cdb6538ccb948b243a6 | |
parent | build: Also emit the size of the w32 source tarball (diff) | |
download | gnupg2-137481fa1002c417cd2c0661b9eefd893b0149d3.tar.xz gnupg2-137481fa1002c417cd2c0661b9eefd893b0149d3.zip |
agent: Fix a memory leak.
* agent/findkey.c (read_key_file): Free BUF.
--
Fixes-commit: 434a641d40cbff82beb9f485e0adca72419bfdf2
Signed-off-by: Sorah Fukumori <her@sorah.jp>
-rw-r--r-- | agent/findkey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index 8efb7b320..e78feaa9c 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -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 |