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:
Chris Michael 2013-06-28 13:57:56 +01:00
parent 204212131b
commit 7e222b949c
1 changed files with 1 additions and 0 deletions

View File

@ -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);