From 137481fa1002c417cd2c0661b9eefd893b0149d3 Mon Sep 17 00:00:00 2001 From: Sorah Fukumori Date: Tue, 14 Jan 2025 11:01:05 +0900 Subject: [PATCH] agent: Fix a memory leak. * agent/findkey.c (read_key_file): Free BUF. -- Fixes-commit: 434a641d40cbff82beb9f485e0adca72419bfdf2 Signed-off-by: Sorah Fukumori --- agent/findkey.c | 1 + 1 file changed, 1 insertion(+) 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