Module: wine Branch: master Commit: bbefb29d1cd9fd644946618574ad1aed8ced4925 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bbefb29d1cd9fd644946618574...
Author: André Hentschel nerv@dawncrow.de Date: Wed Oct 24 20:53:17 2012 +0200
windowscodecs: Fix resource leak (coverity).
---
dlls/windowscodecs/ungif.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/windowscodecs/ungif.c b/dlls/windowscodecs/ungif.c index 0f55242..c2887ed 100644 --- a/dlls/windowscodecs/ungif.c +++ b/dlls/windowscodecs/ungif.c @@ -159,6 +159,7 @@ MakeMapObject(int ColorCount,
Object->Colors = ungif_calloc(ColorCount, sizeof(GifColorType)); if (Object->Colors == NULL) { + ungif_free(Object); return NULL; }