From: Prasoon Singh Date: Fri, 15 May 2020 15:55:38 +0000 (+0530) Subject: [edje] Free up the allocated array memory to avoid leak X-Git-Tag: accepted/tizen/unified/20200604.164556~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b65e8c91dfd506cea7b763064c96b6f14531ec0;p=platform%2Fupstream%2Fefl.git [edje] Free up the allocated array memory to avoid leak Allocated array is only freed when it is inside if block but for other case array is not freed. Change-Id: I6b838f5908ee1c0f3f455dfa690c7ce30ee0471b Signed-off-by: Prasoon Singh --- diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c index 6a402e7..1965144 100644 --- a/src/lib/edje/edje_calc.c +++ b/src/lib/edje/edje_calc.c @@ -4137,9 +4137,13 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta } ERR("Circular dependency in the group '%s' : %s", ed->group, depends_path); + //TIZEN_ONLY(20200526): free part array + //eina_array_free(part_array); + // } - + //TIZEN_ONLY(20200526): free part array eina_array_free(part_array); + // #endif return; }