lib/heap.c
/* Frees memory owned internally by 'heap'.  The caller is responsible for
 * freeing 'heap' itself, if necessary. */
Frees memory owned internally by 'heap'.  The caller is responsible for
freeing 'heap' itself, if necessary.
Frees memory owned internally by ' heap ' . The caller is responsible for freeing ' heap ' itself if necessary .
void
heap_destroy(struct heap *heap)
{
    if (heap) {
        free(heap->array);
    }
}
void heap_destroy ( struct heap * heap ) { if ( heap ) { free ( heap -> array ) ; } }
Frees memory owned internally by 'heap'.
Frees memory owned internally by ' heap ' .