summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-11-08 12:12:26 -0500
committerChris Michael <cp.michael@samsung.com>2016-11-08 12:16:06 -0500
commit11ef74c9620796c21e0979c12a2da49b3ebde82c (patch)
treecc5302de373423e46cc5cd767a35961b64270104
parent7a74a2e176193bfa14063f62db703ed6d959c6e0 (diff)
downloadefl-11ef74c9620796c21e0979c12a2da49b3ebde82c.tar.gz
ecore-evas-wayland: Fix case of potential double-free
This patch addresses the case where we failed to allocate 'wdata' and were calling free(ee) before going to an error handler. For the fix, just don't free(ee) here and let the error handling do it's job. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index ce2a7ae9fb..63fab2f50d 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -2048,7 +2048,6 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, unsigned int parent, i
if (!(wdata = calloc(1, sizeof(Ecore_Evas_Engine_Wl_Data))))
{
ERR("Failed to allocate Ecore_Evas_Engine_Wl_Data");
- free(ee);
goto w_err;
}