forked from enlightenment/efl
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:
parent
7d6bb7fe5a
commit
e1eff60c80
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue