diff --git a/regex/regcomp.c b/regex/regcomp.c index 7c450db07b7..13275237d2a 100644 --- a/regex/regcomp.c +++ b/regex/regcomp.c @@ -1495,6 +1495,7 @@ register sopno size; DBUG_EXECUTE_IF("bug24449090_simulate_oom", { + free(p->strip); p->strip= NULL; p->ssize= 0; SETERROR(REG_ESPACE);