windowscodecs: Fix resource leak (coverity)
André Hentschel
nerv at dawncrow.de
Wed Oct 24 13:53:17 CDT 2012
CID 210317
---
dlls/windowscodecs/ungif.c | 1 +
1 file changed, 1 insertion(+)
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;
}
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list