summaryrefslogtreecommitdiff
path: root/src/modules/sparkler
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/sparkler')
-rw-r--r--src/modules/sparkler/chunker.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/sparkler/chunker.c b/src/modules/sparkler/chunker.c
index ca072eb..96dd911 100644
--- a/src/modules/sparkler/chunker.c
+++ b/src/modules/sparkler/chunker.c
@@ -192,7 +192,13 @@ void chunker_free_chunker(chunker_t *chunker)
chunk_unref(chunker->chunk);
}
+/*
+ It can be useful to police this, but part of the value of the chunker
+ is to be able to perform a bulk cleanup without first performing heaps
+ of granular frees. Maybe enforcing this should be requestable via a
+ parameter.
assert(list_empty(&chunker->pinned_chunks));
+*/
list_for_each_entry_safe(chunk, _chunk, &chunker->free_chunks, chunks) {
free(chunk);
© All Rights Reserved