summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvivek <vivek.ellur@samsung.com>2015-02-05 14:57:14 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-05 15:37:15 +0100
commite1eff60c802a25772595edd39ca1ffe35fea1894 (patch)
treef036e22d9781618fec679be29784528106625a91
parent7d6bb7fe5af6ea8efb88ed9438a6d4e1a2b67ef8 (diff)
downloadefl-e1eff60c802a25772595edd39ca1ffe35fea1894.tar.gz
eina: Eina_Value - use eina_mempool_free to cleanup the memory
Summary: The new value is allocated using Eina_Mempool, it should be freed using eina_mempool, not using libc free. @fix Signed-off-by: vivek <vivek.ellur@samsung.com> Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1940 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/eina/eina_value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index 4f65ab08e2..824f11d7bd 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -5017,7 +5017,7 @@ eina_value_new(const Eina_Value_Type *type)
if (!value) return NULL;
if (!eina_value_setup(value, type))
{
- free(value);
+ eina_mempool_free(_eina_value_mp, value);
return NULL;
}
return value;