server: Free ptr in console_input_append_hist

Robert Shearman rob at codeweavers.com
Fri Apr 7 05:17:12 CDT 2006


ChangeLog:
Free ptr in console_input_append_hist before returning, otherwise it
will be leaked. (Found by Coverity.)

Remove the setting of last error on mem_alloc failure, as it is already
done in mem_alloc.

  server/console.c |    7 +++----
  1 files changed, 3 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2b0df8cba68fe985d0dbe36a061b9cbf72c2d247.diff
Type: text/x-patch
Size: 520 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060407/ac70ae5f/2b0df8cba68fe985d0dbe36a061b9cbf72c2d247.diff


More information about the wine-patches mailing list