summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2020-03-10 10:34:07 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-03-10 10:34:07 -0400
commit54a841eb898afa44432bc90c758002001491891f (patch)
treedcc5561e17d2d255a6d6618d5f4a78e507ed5134 /src
parent8009817d0773eb5ad2b6bbccc7f6f19c50f218ca (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/eina/eina_abstract_content.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_abstract_content.c b/src/lib/eina/eina_abstract_content.c
index 73a77c00df..65ea170ad4 100644
--- a/src/lib/eina/eina_abstract_content.c
+++ b/src/lib/eina/eina_abstract_content.c
@@ -142,6 +142,7 @@ eina_content_new(Eina_Slice data, const char *type)
142err: 142err:
143 free(content->data.mem); 143 free(content->data.mem);
144 content->data.mem = NULL; 144 content->data.mem = NULL;
145 free(content);
145 return NULL; 146 return NULL;
146} 147}
147 148