forked from enlightenment/efl
Fix klockwork memleak: If we allocate a colormap above, then we need
to free it on error. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
204212131b
commit
7e222b949c
|
@ -634,6 +634,7 @@ evas_image_load_file_xpm(Evas_Img_Load_Params *ilp, const char *file, const char
|
|||
return EINA_TRUE;
|
||||
|
||||
on_error:
|
||||
if (cmap) free(cmap);
|
||||
free(line);
|
||||
eina_file_map_free(f, (void*) map);
|
||||
eina_file_close(f);
|
||||
|
|
Loading…
Reference in New Issue