Commit f56dfbb8 authored by Niels Möller's avatar Niels Möller
Browse files

* src/gc.c (gc_final): Check number_of_objects and

number_of_strings.

Rev: src/gc.c:1.17
parent d0e467f4
......@@ -228,5 +228,9 @@ void gc_maybe(struct lsh_object *root, int busy)
void gc_final(void)
{
gc_sweep();
assert(!number_of_objects);
if (number_of_strings)
werror("gc_final: %i strings leaked!\n");
}
#endif /* DEBUG_ALLOC */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment