=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: windowscodecs: Fix resource leak ( coverity).

Alexandre Julliard julliard at winehq.org
Thu Oct 25 13:50:44 CDT 2012


Module: wine
Branch: master
Commit: bbefb29d1cd9fd644946618574ad1aed8ced4925
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bbefb29d1cd9fd644946618574ad1aed8ced4925

Author: André Hentschel <nerv at 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;
     }
 




More information about the wine-cvs mailing list