forked from enlightenment/efl
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:
parent
6949d1193e
commit
30363956f1
|
@ -1065,7 +1065,7 @@ data_write_images(Eet_File *ef, int *image_num)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (iw) free(iw);
|
free(iw);
|
||||||
error_and_abort_image_load_error
|
error_and_abort_image_load_error
|
||||||
(ef, img->entry, load_err);
|
(ef, img->entry, load_err);
|
||||||
exit(1); // ensure static analysis tools know we exit
|
exit(1); // ensure static analysis tools know we exit
|
||||||
|
|
Loading…
Reference in New Issue