diff options
author | Justus Winter <[email protected]> | 2016-06-30 11:41:10 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-30 13:31:37 +0000 |
commit | abae8a9dc8a00cf46291ccb40644b3a7aa477307 (patch) | |
tree | b412e55e8fdf5454823d2c21cb9bd9e1b9978a0e | |
parent | gpgscm: Fix reallocating string ports. (diff) | |
download | gnupg-abae8a9dc8a00cf46291ccb40644b3a7aa477307.tar.gz gnupg-abae8a9dc8a00cf46291ccb40644b3a7aa477307.zip |
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 <[email protected]>
-rw-r--r-- | g10/mainproc.c | 2 |
1 files changed, 0 insertions, 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) |