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>
if (!value) return NULL;
if (!eina_value_setup(value, type))
{
- free(value);
+ eina_mempool_free(_eina_value_mp, value);
return NULL;
}
return value;