cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=e1eff60c802a25772595edd39ca1ffe35fea1894
commit e1eff60c802a25772595edd39ca1ffe35fea1894 Author: vivek <vivek.el...@samsung.com> Date: Thu Feb 5 14:57:14 2015 +0100 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.el...@samsung.com> Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1940 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/lib/eina/eina_value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c index 4f65ab0..824f11d 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; --