When we push a memory to the trash stack we mark it as unaccessable. So we
should mark it as accessible before returning it to the user.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@53427
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
p->last = NULL;
}
else
- // Request a free pointer
- mem = eina_trash_pop(&p->base);
+ {
+#ifndef NVALGRIND
+ VALGRIND_MAKE_MEM_DEFINED(p->base, pool->item_alloc);
+#endif
+ // Request a free pointer
+ mem = eina_trash_pop(&p->base);
+ }
// move to end - it just filled up
if (!p->base && !p->last)