summaryrefslogtreecommitdiff
path: root/lib/libc/regex/regcomp.c
diff options
context:
space:
mode:
authorDaniel C. Sobral <dcs@FreeBSD.org>2000-07-07 07:47:39 +0000
committerDaniel C. Sobral <dcs@FreeBSD.org>2000-07-07 07:47:39 +0000
commit4d41cae8f87524b1e346a732c5fc1a3e99ee0bff (patch)
treee51638cec2a65e864b0e3750f6d138c2e9b55ca4 /lib/libc/regex/regcomp.c
parentc5e125bbbf93b1fdcfac006c3c570095b868632f (diff)
Notes
Diffstat (limited to 'lib/libc/regex/regcomp.c')
-rw-r--r--lib/libc/regex/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index 966408426473..f19e09724b45 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;
}