summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorjiin.moon <jiin.moon@samsung.com>2015-05-26 18:34:32 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-27 00:31:07 +0200
commit6986e3126d646b693300b78c96bb0eabae34782e (patch)
treeb57fdc29308318d854e2623349a32f8efc35ff11 /src/bin
parent331068b84a9f2adb1bed55d2c44278315a8de061 (diff)
edje: fix memory leak detected by prevent static analyser.
Summary: Modified codes according to prevent result The im will be freed by data_image_preload_done api. But if image load error happen, never call that api @fix Test Plan: prevent tool Reviewers: Jaehyun, Hermet, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2565 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/edje/edje_cc_out.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 95798fb5b0..f755254286 100755
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -1048,6 +1048,7 @@ data_write_images(Eet_File *ef, int *image_num)
1048 } 1048 }
1049 else 1049 else
1050 { 1050 {
1051 if (iw) free(iw);
1051 error_and_abort_image_load_error 1052 error_and_abort_image_load_error
1052 (ef, img->entry, load_err); 1053 (ef, img->entry, load_err);
1053 exit(1); // ensure static analysis tools know we exit 1054 exit(1); // ensure static analysis tools know we exit