summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-12 18:06:54 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-12 18:11:36 +0100
commitc19498fffc0a4db423d80845cf2e0d56c73907c7 (patch)
tree889a74b3a7468c46f227ccb086e2944b4d719e49
parenteaa06230ddf53a444e37e66034b0e4f8f4b2b0af (diff)
eina: do not free NULL ptr
this is definitly NULL here, but usefull for later usage.
-rw-r--r--src/lib/eina/eina_abstract_content.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/eina/eina_abstract_content.c b/src/lib/eina/eina_abstract_content.c
index 65ea170ad4..a9899cecfe 100644
--- a/src/lib/eina/eina_abstract_content.c
+++ b/src/lib/eina/eina_abstract_content.c
@@ -140,8 +140,11 @@ eina_content_new(Eina_Slice data, const char *type)
140 return content; 140 return content;
141 141
142err: 142err:
143 free(content->data.mem); 143 if (content->data.mem)
144 content->data.mem = NULL; 144 {
145 free(content->data.mem);
146 content->data.mem = NULL;
147 }
145 free(content); 148 free(content);
146 return NULL; 149 return NULL;
147} 150}