projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa94bd
)
e_input: fix memory leak issue detected by static analysis tool
18/303218/2
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Thu, 21 Dec 2023 10:15:45 +0000
(19:15 +0900)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Fri, 22 Dec 2023 00:38:32 +0000
(
00:38
+0000)
Change-Id: I866aef6cded6ed0afcbbd7ee6424004769c76e08
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/e_input_inputs.c
patch
|
blob
|
history
diff --git
a/src/bin/e_input_inputs.c
b/src/bin/e_input_inputs.c
index
50eadfe
..
186b4a1
100644
(file)
--- a/
src/bin/e_input_inputs.c
+++ b/
src/bin/e_input_inputs.c
@@
-881,8
+881,12
@@
input_thread_cancel(void *data, Ecore_Thread *th)
void
_e_input_key_event_list_add(Ecore_Event_Key *key)
{
- Ecore_Event_Key *clone = E_NEW(Ecore_Event_Key, 1);
- if (!clone || !key) return;
+ Ecore_Event_Key *clone = NULL;
+
+ if (!key) return;
+
+ clone = E_NEW(Ecore_Event_Key, 1);
+ if (!clone) return;
if (key->keyname)
clone->keyname = (char *)eina_stringshare_add(key->keyname);