translate(): fix `regfree(get_sp_cur);` not followed by `get_sp_cur = NULL;`, leading to a random pointer to nowhere

This commit is contained in:
stefan schippers 2025-01-30 22:43:35 +01:00
parent 42a0ceb51f
commit 60d180de33
1 changed files with 1 additions and 0 deletions

View File

@ -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) {