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 8f1ee6dc..1f31cf54 100644
--- a/gc.c
+++ b/gc.c
@@ -331,7 +331,7 @@ static void mark_mem_region(val *low, val *high)
if (in_heap(maybe_obj)) {
#ifdef HAVE_VALGRIND
if (opt_vg_debug)
- VALGRIND_MAKE_MEM_DEFINED(maybe_obj, sizeof *maybe_obj);
+ VALGRIND_MAKE_MEM_DEFINED(&maybe_obj->t.type, sizeof maybe_obj->t.type);
#endif
type_t t = maybe_obj->t.type;
if ((t & FREE) == 0) {