From b2e752ee3257e967fa4796b39054a7f32629291d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 26 Jul 2024 13:30:24 -0400 Subject: Replace heap_str with GC_strdup --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 017dd739..128a2aca 100644 --- a/parse.c +++ b/parse.c @@ -156,7 +156,7 @@ const char *unescape(const char **out) { assert(*escape == '\\'); if (unescapes[(int)escape[1]]) { *endpos = escape + 2; - return heap_str(unescapes[(int)escape[1]]); + return GC_strdup(unescapes[(int)escape[1]]); } else if (escape[1] == 'U' && escape[2]) { char *endptr = NULL; long codepoint = strtol(escape+2, &endptr, 16); -- cgit v1.2.3