diff options
Diffstat (limited to 'analyzer/structures/heap.c')
| -rw-r--r-- | analyzer/structures/heap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/analyzer/structures/heap.c b/analyzer/structures/heap.c index 690aac1..6102940 100644 --- a/analyzer/structures/heap.c +++ b/analyzer/structures/heap.c @@ -101,6 +101,8 @@ void heap_top_remove(Heap *heap) { } void heap_free(Heap *heap) { + if (!heap) + return; for (size_t i = 0; i < heap->n_elements; i++) { free_heap_element(heap, i); } |
