summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-24 08:07:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-24 08:07:51 -0800
commit37cfe995711604880217b1e07ee1274819a2b926 (patch)
tree438425da8a26553b2b3e17f354f804025ea12b06 /ffi.c
parent423b56b353fd0de803d734613bc93372c0986a59 (diff)
downloadtxr-37cfe995711604880217b1e07ee1274819a2b926.tar.gz
txr-37cfe995711604880217b1e07ee1274819a2b926.tar.bz2
txr-37cfe995711604880217b1e07ee1274819a2b926.zip
ffi: gc bug in cptr type.
* ffi.c (ffi_type_common_mark): We must mark tft->tag field whih is used by the cptr type and is otherwise nil.
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffi.c b/ffi.c
index 9643ac87..b047d859 100644
--- a/ffi.c
+++ b/ffi.c
@@ -244,6 +244,7 @@ static void ffi_type_common_mark(struct txr_ffi_type *tft)
{
gc_mark(tft->lt);
gc_mark(tft->syntax);
+ gc_mark(tft->tag);
}
static void ffi_type_mark(val obj)