g10: Fix memory leak.
authorJustus Winter <justus@g10code.com>
Thu, 30 Jun 2016 11:41:10 +0000 (13:41 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 30 Jun 2016 13:31:37 +0000 (15:31 +0200)
* 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 <justus@g10code.com>
g10/mainproc.c

index c191fe0..4217ccd 100644 (file)
@@ -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)