forked from enlightenment/efl
Just mark memory as freed after actually freeing it.
Otherwise valgrind would complain about invalid memory access. SVN revision: 53426
This commit is contained in:
parent
94fb47d168
commit
4bd0432caf
|
@ -246,10 +246,6 @@ eina_chained_mempool_free(void *data, void *ptr)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NVALGRIND
|
||||
VALGRIND_MEMPOOL_FREE(pool, ptr);
|
||||
#endif
|
||||
|
||||
EINA_INLIST_FOREACH(pool->first, p)
|
||||
{
|
||||
// Could the pointer be inside that pool
|
||||
|
@ -280,6 +276,10 @@ eina_chained_mempool_free(void *data, void *ptr)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef NVALGRIND
|
||||
VALGRIND_MEMPOOL_FREE(pool, ptr);
|
||||
#endif
|
||||
|
||||
#ifdef EFL_HAVE_THREADS
|
||||
if (_threads_activated)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue