summaryrefslogtreecommitdiffstats
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
commitb7b3ddb78248b0e0db3c526c666ebe56e637d47f (patch)
tree438425da8a26553b2b3e17f354f804025ea12b06
parentb03342e9ffc924eede2984349a7a9f3a28206d6c (diff)
downloadtxr-b7b3ddb78248b0e0db3c526c666ebe56e637d47f.tar.gz
txr-b7b3ddb78248b0e0db3c526c666ebe56e637d47f.tar.bz2
txr-b7b3ddb78248b0e0db3c526c666ebe56e637d47f.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.
-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)