summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 19032cbe..178e1cc6 100644
--- a/gc.c
+++ b/gc.c
@@ -521,7 +521,7 @@ static int sweep_one(obj_t *block)
#endif
#if CONFIG_EXTRA_DEBUGGING
- if (block == break_obj) {
+ if (block == break_obj && (block->t.type & FREE) == 0) {
#if HAVE_VALGRIND
VALGRIND_PRINTF_BACKTRACE("object %p swept (type = %x)\n",
convert(void *, block),