cedric pushed a commit to branch master.


commit 6986e3126d646b693300b78c96bb0eabae34782e
Author: jiin.moon <jiin.m...@samsung.com>
Date:   Tue May 26 18:34:32 2015 +0200

    edje: fix memory leak detected by prevent static analyser.
    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
    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 <ced...@osg.samsung.com>
 src/bin/edje/edje_cc_out.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 95798fb..f755254 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)
+                       if (iw) free(iw);
                          (ef, img->entry, load_err);
                        exit(1); // ensure static analysis tools know we exit


Reply via email to