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:
Christopher Michael 2020-03-10 10:34:07 -04:00
parent 8009817d07
commit 54a841eb89
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}