diff --git a/dlls/windowscodecs/ungif.c b/dlls/windowscodecs/ungif.c index 0f55242b720..c2887ed3dbd 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; }