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>
This commit is contained in:
Chris Michael 2016-06-30 11:14:40 -04:00
parent 7b0a1933a0
commit ff7a5e4f1b
1 changed files with 0 additions and 1 deletions

View File

@ -695,7 +695,6 @@ connect_err:
eina_hash_free(ewd->globals);
free(ewd->name);
free(ewd);
return NULL;
if (hash_create)
{