summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-26 00:41:27 +0200
committerDan McGee <dan@archlinux.org>2011-08-26 00:41:27 +0200
commitbe72e100159e6cd50ac64e3639f8e4f98218ccae (patch)
treec89f0b9e741f449190865fa46907b7f4ef449726
parentc5982a3eb5287afdec6c9b859f81795c773da8fe (diff)
downloadpacman-be72e100159e6cd50ac64e3639f8e4f98218ccae.tar.gz
pacman-be72e100159e6cd50ac64e3639f8e4f98218ccae.tar.xz
Fix small memory leak in sig check code
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/signing.c1
-rw-r--r--valgrind.supp1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 8db4a7b2..f63ac2f6 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -539,6 +539,7 @@ int SYMEXPORT alpm_sigresult_cleanup(alpm_sigresult_t *result)
* values in the struct. Only look at them if count is greater than 0. */
if(result->count > 0) {
free(result->status);
+ free(result->validity);
if(result->uid) {
int i;
for(i = 0; i < result->count; i++) {
diff --git a/valgrind.supp b/valgrind.supp
index 58fdf1cb..f91547bf 100644
--- a/valgrind.supp
+++ b/valgrind.supp
@@ -68,7 +68,6 @@
Memcheck:Leak
fun:malloc
...
- fun:_gpgme_set_engine_info
fun:gpgme_set_engine_info
}
{