From d41126e75fc76400ee05e8fdcd2f6a51548f0a97 Mon Sep 17 00:00:00 2001 From: CPunch Date: Tue, 29 Aug 2023 23:01:47 -0500 Subject: [PATCH] fix cparse.c gc bug --- src/cparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cparse.c b/src/cparse.c index 8b8ec18..84e4d8b 100644 --- a/src/cparse.c +++ b/src/cparse.c @@ -481,6 +481,7 @@ static void string(CParseState *pstate, bool canAssign, Precedence prec) { CObjString *strObj = cosmoO_takeString(pstate->state, pstate->previous.start, pstate->previous.length); + keepTrackOf(pstate, cosmoV_newRef((CObj *)strObj)); writeConstant(pstate, cosmoV_newRef((CObj *)strObj)); }