[edje] Free up the allocated array memory to avoid leak
authorPrasoon Singh <prasoon.16@samsung.com>
Fri, 15 May 2020 15:55:38 +0000 (21:25 +0530)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 1 Jun 2020 04:46:27 +0000 (13:46 +0900)
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 <prasoon.16@samsung.com>
src/lib/edje/edje_calc.c

index 6a402e7..1965144 100644 (file)
@@ -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;
      }