projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a771d35
)
ecore: fix a memory leaking
36/225136/2
author
Wonki Kim
<wonki_.kim@samsung.com>
Mon, 17 Feb 2020 12:57:01 +0000
(21:57 +0900)
committer
wonki kim
<wonki_.kim@samsung.com>
Tue, 18 Feb 2020 06:10:26 +0000
(06:10 +0000)
this patch fixes a memory leaking.
Change-Id: I909d038812f2a66c6bd5e503b16767e73472f5bc
src/lib/ecore/efl_core_proc_env.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore/efl_core_proc_env.c
b/src/lib/ecore/efl_core_proc_env.c
index 5f36ad1cc380680887f7a95bd7ffabca2a15fe29..d0672d232ab925254e473656f6c78359692bb869 100644
(file)
--- a/
src/lib/ecore/efl_core_proc_env.c
+++ b/
src/lib/ecore/efl_core_proc_env.c
@@
-69,8
+69,11
@@
_sync(Efl_Core_Env *obj, Efl_Core_Proc_Env_Data *pd)
}
}
- for (int i = 0; values[i]; i++)
- free(values[i]);
+ if (values)
+ {
+ free(values[0]);
+ free(values);
+ }
}
}
EINA_LIST_FOREACH(existing_keys, n, key)