windowscodecs: Fix resource leak (coverity).
This commit is contained in:
parent
31eef521e9
commit
bbefb29d1c
|
@ -159,6 +159,7 @@ MakeMapObject(int ColorCount,
|
||||||
|
|
||||||
Object->Colors = ungif_calloc(ColorCount, sizeof(GifColorType));
|
Object->Colors = ungif_calloc(ColorCount, sizeof(GifColorType));
|
||||||
if (Object->Colors == NULL) {
|
if (Object->Colors == NULL) {
|
||||||
|
ungif_free(Object);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue