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>
This commit is contained in:
vivek 2015-02-05 14:57:14 +01:00 committed by Cedric BAIL
parent 7d6bb7fe5a
commit e1eff60c80
1 changed files with 1 additions and 1 deletions

View File

@ -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;