From abae8a9dc8a00cf46291ccb40644b3a7aa477307 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 30 Jun 2016 13:41:10 +0200 Subject: [PATCH] g10: Fix memory leak. * g10/mainproc.c (release_list): Do not exit early if list is NULL, there are other resources that must be released. Signed-off-by: Justus Winter --- g10/mainproc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/g10/mainproc.c b/g10/mainproc.c index c191fe03e..4217ccdb4 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -124,8 +124,6 @@ reset_literals_seen(void) static void release_list( CTX c ) { - if (!c->list) - return; proc_tree (c, c->list); release_kbnode (c->list); while (c->pkenc_list)