forked from enlightenment/efl
eina_abstract_content: Fix resource leak
If we error out in this function, then we should be freeing 'content' also as it was previously calloc'd above Fixes CID1420317
This commit is contained in:
parent
8009817d07
commit
54a841eb89
|
@ -142,6 +142,7 @@ eina_content_new(Eina_Slice data, const char *type)
|
|||
err:
|
||||
free(content->data.mem);
|
||||
content->data.mem = NULL;
|
||||
free(content);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue