Signed-off-by: Andrew Gregory <[email protected]>
---
 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

Reply via email to