agent: Fix memory leaks in multiple codes

Werner Koch wk at gnupg.org
Wed Dec 24 21:12:00 CET 2014


On Tue, 23 Dec 2014 21:52, git at internot.info said:

>    if (*s != '(' && s[1] != '(')
> +  {
> +    xfree (newlist);
>      return gpg_error (GPG_ERR_BUG);  /*we already checked this */
> +  }

That one was intentional.  It is more an assert than a real error check
and thus there is no cleanup.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list