summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-06-30 11:14:40 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-06-30 11:14:40 -0400
commitff7a5e4f1b1286b1226fb0a9a1729759d1f72e18 (patch)
treeb12679e3061accc1a2d4d022e0e5e18196a889ae /src
parent7b0a1933a00983b28951ae9987bbc6dcf4dc5fc8 (diff)
ecore-wl2: Fix issue where hash would not get destroyed on error
Coverity reports that we could not reach the eina_hash_free here on erorr condition. This was due to an erroneous return NULL above the if (hash_create) check. Fixes Coverity CID1357171 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_display.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c
index cdc859c..0df55f5 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -695,7 +695,6 @@ connect_err:
695 eina_hash_free(ewd->globals); 695 eina_hash_free(ewd->globals);
696 free(ewd->name); 696 free(ewd->name);
697 free(ewd); 697 free(ewd);
698 return NULL;
699 698
700 if (hash_create) 699 if (hash_create)
701 { 700 {