summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-24 08:52:02 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-24 08:52:02 -0400
commitb36833f49b87b985d34ed1f52ed33a0192a53237 (patch)
treed833fec31e9b30e5591faf8189801f59197d7faf
parent5b2b75a7f22a59e99e5b284b3b19bc9a42e981d2 (diff)
ecore-evas-x: Fix double free
Coverity reports, and reading the code confirms, that the variable 'out' has already been freed (or is NULL) when reaching this line of execution. Fixes CID1382851 @fix
-rw-r--r--src/modules/ecore_evas/engines/x/ecore_evas_x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index d8f8540b19..8c12aa44a3 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -3528,7 +3528,6 @@ _ecore_evas_x_screen_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w,
3528 if (!out) 3528 if (!out)
3529 { 3529 {
3530norandr: 3530norandr:
3531 if (out) free(out);
3532 if (x) *x = 0; 3531 if (x) *x = 0;
3533 if (y) *y = 0; 3532 if (y) *y = 0;
3534 ecore_x_window_size_get(root, w, h); 3533 ecore_x_window_size_get(root, w, h);