diff options
Diffstat (limited to 'lib/libc/regex')
-rw-r--r-- | lib/libc/regex/regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 9664084..f19e097 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -279,7 +279,7 @@ int cflags; if(g->mlen > 3) { computejumps(p, g); computematchjumps(p, g); - if(g->matchjump == NULL) { + if(g->matchjump == NULL && g->charjump != NULL) { free(g->charjump); g->charjump = NULL; } |