msvcrt: move error condition before memory allocation (found by Smatch) [1/3, resend]
lionel_debroux at yahoo.fr
Thu Sep 27 13:12:02 CDT 2007
_wfullpath leaks some heap memory in an error paths. Found in Michael
Stefaniuc's list of Wine potential bugs detected by Smatch.
Fixed by moving the error treatment before the allocation, since the
error treatment doesn't fire up if there was a memory allocation (due to
size = MAX_PATH; assignment).
Is there anything wrong with this patch ?
2007-09-24 Lionel Debroux <lionel_debroux at yahoo.fr>
msvcrt: move error condition before memory allocation (found by
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1169 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070927/7495348b/attachment.bin
More information about the wine-patches