Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/signing.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index e1b6452c..b090b6a9 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -615,7 +615,10 @@ int SYMEXPORT alpm_siglist_cleanup(alpm_siglist_t *siglist)
free(result->key.fingerprint);
}
}
- FREE(siglist->results);
+ if(siglist->count) {
+ free(siglist->results);
+ }
+ siglist->results = NULL;
siglist->count = 0;
return 0;
}