aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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);