diff options
Diffstat (limited to 'agent/protect.c')
-rw-r--r-- | agent/protect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/protect.c b/agent/protect.c index 4ceb3006e..30ee1345d 100644 --- a/agent/protect.c +++ b/agent/protect.c @@ -970,7 +970,10 @@ merge_lists (const unsigned char *protectedkey, /* Copy the cleartext. */ s = cleartext; if (*s != '(' && s[1] != '(') - return gpg_error (GPG_ERR_BUG); /*we already checked this */ + { + xfree (newlist); + return gpg_error (GPG_ERR_BUG); /*we already checked this */ + } s += 2; startpos = s; while ( *s == '(' ) |