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

Message ID 20210116072101.38203-4-andrew.gregory.8@gmail.com
State New
Headers show
Series [pacman-dev,1/7] pacman: indicate --overwrite takes a glob | expand

Commit Message

Andrew Gregory Jan. 16, 2021, 7:20 a.m. UTC
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
---
 lib/libalpm/sync.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

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) {