Tartarus CVS: putty: simon

tartarus-commits@lists.tartarus.org tartarus-commits@lists.tartarus.org
Sun, 17 Nov 2002 15:06:19 +0000


CVS Root:       /home/cvs
Module:         putty
Changes by:     simon
Date:           Sun Nov 17 2002  15:06:19 GMT

Log message:
Thanks to Hans-Juergen Petrich for spotting this tiny memory leak:
`otherbuf' should still be freed even if the RegEnumKey function
that was supposed to fill it with data failed. While I'm at it, also
remove the redundant check for its non-NULL-ness (what's the point
of having a malloc wrapper that dies rather than return NULL if you
then waste effort checking its return value for NULL _anyway_, eh?).

Modified files:
    .               : winstore.c

Links:
http://cvs.tartarus.org//putty/winstore.c.diff?r1=1.10&r2=1.11