heap_context_delete.c 380 B

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