aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJongMin Lee <jm105.lee@samsung.com>2018-04-27 14:04:02 +0900
committerHermet Park <hermetpark@gmail.com>2018-04-27 14:04:02 +0900
commit296d117f2a4a0617248ace1f929e29819f196a1d (patch)
tree8243e41b76e3b6f0d9ab184d310ce7d162fdfd18 /src
parenteina: provide full string length to vsnprintf to allow for null character (diff)
downloadefl-296d117f2a4a0617248ace1f929e29819f196a1d.tar.gz
elm efl_selection_manager: resolve possible memory leak.
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/efl_selection_manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_selection_manager.c b/src/lib/elementary/efl_selection_manager.c
index dd885d5cd9..b9165c5aaa 100644
--- a/src/lib/elementary/efl_selection_manager.c
+++ b/src/lib/elementary/efl_selection_manager.c
@@ -3743,7 +3743,11 @@ _wl_sel_manager_drop_target_add(Efl_Selection_Manager_Data *pd, Efl_Object *targ
{
//Create new drop
dropable = calloc(1, sizeof(Sel_Manager_Dropable));
- if (!dropable) return EINA_FALSE;
+ if (!dropable)
+ {
+ free(df);
+ return EINA_FALSE;
+ }
pd->drop_list = eina_list_append(pd->drop_list, dropable);
if (!pd->drop_list)
{