[PATCH] yat2m: don't dereference pointer to freed memory

Werner Koch wk at gnupg.org
Mon Jan 16 11:53:09 CET 2012


On Sat, 14 Jan 2012 22:36, jim at meyering.net said:
>      {
> -      macro_t m = macrolist->next;
> -      free (m->value);
> -      free (m);
> -      macrolist = m;

Oops.  Such a common pattern I still got it wrong.


Thanks,

   Werner


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




More information about the Gnupg-devel mailing list