1
0

heap_context_delete.c 353 B

12345678910111213141516
  1. #include "private.h"
  2. #include "context.h"
  3. bool_t lub_heap_context_delete(lub_heap_context_t * context)
  4. {
  5. lub_heap_leak_t *leak = lub_heap_leak_instance();
  6. /* finalise the instance */
  7. lub_heap_context_fini(context);
  8. /* release the memory */
  9. lub_dblockpool_free(&leak->m_context_pool, context);
  10. lub_heap_leak_release(leak);
  11. return BOOL_TRUE;
  12. }