From 60d180de33181e8463072dc1ece9e39a4a0b62c7 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 30 Jan 2025 22:43:35 +0100 Subject: [PATCH] translate(): fix `regfree(get_sp_cur);` not followed by `get_sp_cur = NULL;`, leading to a random pointer to nowhere --- src/token.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/token.c b/src/token.c index 40dc0565..fbb9e305 100644 --- a/src/token.c +++ b/src/token.c @@ -3771,6 +3771,7 @@ const char *translate(int inst, const char* s) my_free(_ALLOC_ID_, &result); my_free(_ALLOC_ID_, &translated_tok); regfree(get_sp_cur); + get_sp_cur = NULL; return empty; } if(inst >= xctx->instances) {