[programs/cmd] Do the assignment after the return to avoid a missing
free() (Coverity)
Paul Vriens
paul.vriens.wine at gmail.com
Thu Jul 12 02:38:02 CDT 2007
Hi,
We could do a free after the check for (context == NULL) but it's simpler/better
to move the assignment after the check (and possible return).
Should fix Coverity CID-559
Changelog
Do the assignment after the return to avoid a missing free()
Cheers,
Paul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Do-the-assignment-after-the-return-to-avoid-a-missin.patch
Type: text/x-patch
Size: 910 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070712/0ff2859e/0007-Do-the-assignment-after-the-return-to-avoid-a-missin.bin
More information about the wine-patches
mailing list