Do not free NULL pointers.

This commit is contained in:
Daniel C. Sobral 2000-07-07 07:47:39 +00:00
parent c5e125bbbf
commit 4d41cae8f8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}