From be72e100159e6cd50ac64e3639f8e4f98218ccae Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 25 Aug 2011 17:41:27 -0500 Subject: Fix small memory leak in sig check code Signed-off-by: Dan McGee --- lib/libalpm/signing.c | 1 + valgrind.supp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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 } { -- cgit v1.2.3-70-g09d2