diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-08-04 22:19:49 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-08-10 22:33:06 -0400 |
commit | 7d262c38f44193a6e6b601e3ec436945b3bf4e5d (patch) | |
tree | 5842a57188aba5fcee0c531910758772b68a4e17 /bftw.c | |
parent | c49dd050080562f829a053d3eb30597fb0c23339 (diff) | |
download | bfs-7d262c38f44193a6e6b601e3ec436945b3bf4e5d.tar.xz |
bftw: Assert that the queue is empty when freeing it
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -545,6 +545,7 @@ static struct bftw_dir *bftw_queue_pop(struct bftw_queue *queue) { /** Destroy a bftw_queue. */ static void bftw_queue_destroy(struct bftw_queue *queue) { + assert(queue->size == 0); free(queue->buffer); } |