devilhorns pushed a commit to branch master.
commit d7193f28306ceff44c340781fe663e98f1925de1
Author: Chris Michael <[email protected]>
Date: Mon Jul 8 12:27:40 2013 +0100
Fix memleak reported by Coverity
NB: Fixes Coverity CID1039272
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/ecore_x/xlib/ecore_x_e.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lib/ecore_x/xlib/ecore_x_e.c b/src/lib/ecore_x/xlib/ecore_x_e.c
index ec0b2af..13bd39f 100644
--- a/src/lib/ecore_x/xlib/ecore_x_e.c
+++ b/src/lib/ecore_x/xlib/ecore_x_e.c
@@ -1174,7 +1174,10 @@ ecore_x_e_window_profile_list_get(Ecore_X_Window win,
if (!ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST,
XA_ATOM, 32, &data, &num))
- return EINA_FALSE;
+ {
+ if (data) free(data);
+ return EINA_FALSE;
+ }
if (ret_num)
*ret_num = num;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev