summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2020-02-17 12:40:56 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-19 15:20:29 +0100
commitc3a616cdb2ab2bba0ef239f90fa4a42725a6c55a (patch)
tree2cd13e20a420ebc0d5a5c1857036fa222c50aa00
parent46f616828e467908e4c27512def981d1b5989164 (diff)
ecore: fix a memory leak
this patch fixes a memory leaking Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11369
-rw-r--r--src/lib/ecore/efl_core_proc_env.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore/efl_core_proc_env.c b/src/lib/ecore/efl_core_proc_env.c
index a4ee9d75f9..3b21015048 100644
--- a/src/lib/ecore/efl_core_proc_env.c
+++ b/src/lib/ecore/efl_core_proc_env.c
@@ -68,6 +68,12 @@ _sync(Efl_Core_Env *obj, Efl_Core_Proc_Env_Data *pd)
68 break; 68 break;
69 } 69 }
70 } 70 }
71
72 if (values)
73 {
74 free(values[0]);
75 free(values);
76 }
71 } 77 }
72 } 78 }
73 EINA_LIST_FOREACH(existing_keys, n, key) 79 EINA_LIST_FOREACH(existing_keys, n, key)