[pacman-dev] [PATCH 4/7] fully free error list in check_keyring

Andrew Gregory andrew.gregory.8 at gmail.com
Sat Jan 16 07:20:58 UTC 2021


Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 lib/libalpm/sync.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 3919d266..2859debb 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -934,8 +934,9 @@ static int check_keyring(alpm_handle_t *handle)
 			}
 			free(keyinfo->uid);
 			free(keyinfo->keyid);
-
+			free(keyinfo);
 		}
+		alpm_list_free(errors);
 		event.type = ALPM_EVENT_KEY_DOWNLOAD_DONE;
 		EVENT(handle, &event);
 		if(fail) {
-- 
2.30.0


More information about the pacman-dev mailing list