devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=54a841eb898afa44432bc90c758002001491891f

commit 54a841eb898afa44432bc90c758002001491891f
Author: Christopher Michael <[email protected]>
Date:   Tue Mar 10 10:34:07 2020 -0400

    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
---
 src/lib/eina/eina_abstract_content.c | 1 +
 1 file changed, 1 insertion(+)

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)
 err:
    free(content->data.mem);
    content->data.mem = NULL;
+   free(content);
    return NULL;
 }
 

-- 


Reply via email to