forked from enlightenment/efl
eina_abstract_content: Fix dereference before null check
Fixes Coverity CID1420337
This commit is contained in:
parent
2747c84ec1
commit
e34837f28d
|
@ -138,12 +138,10 @@ eina_content_new(Eina_Slice data, const char *type)
|
||||||
|
|
||||||
_eina_content_ref(content);
|
_eina_content_ref(content);
|
||||||
return content;
|
return content;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
if (content)
|
free(content->data.mem);
|
||||||
{
|
content->data.mem = NULL;
|
||||||
free(content->data.mem);
|
|
||||||
content->data.mem = NULL;
|
|
||||||
}
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue