提交 6142cd80 编写于 作者: A anthony

6886868: giflib has a memory leak in the MakeMapObject() function

Summary: free() the object before returning NULL
Reviewed-by: art, dcherepanov
上级 21172bb2
......@@ -88,6 +88,7 @@ MakeMapObject(int ColorCount,
Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType));
if (Object->Colors == (GifColorType *) NULL) {
free(Object);
return ((ColorMapObject *) NULL);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册