edje_cc: Fix dereference before null check

Summary: Fix Coverity CID1302700 which reports a dereference before
null check. Basically, it is safe to call free() with a possible NULL
value so we can remove the 'if' check here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-06-25 14:59:28 -04:00
parent 6949d1193e
commit 30363956f1
1 changed files with 1 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ data_write_images(Eet_File *ef, int *image_num)
}
else
{
if (iw) free(iw);
free(iw);
error_and_abort_image_load_error
(ef, img->entry, load_err);
exit(1); // ensure static analysis tools know we exit