diff options
| author | Daniel C. Sobral <dcs@FreeBSD.org> | 2000-07-08 09:45:17 +0000 |
|---|---|---|
| committer | Daniel C. Sobral <dcs@FreeBSD.org> | 2000-07-08 09:45:17 +0000 |
| commit | 6d902efe43a9c144fdc8f57cd317888836dbb4cc (patch) | |
| tree | 7e4e5ffa40ceb311a21f50e56c50a7276d21700c /lib/libc/regex | |
| parent | 0b474bc60819ab9e0cbab47fb2edd631d96713f4 (diff) | |
Notes
Diffstat (limited to 'lib/libc/regex')
| -rw-r--r-- | lib/libc/regex/regfree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/regex/regfree.c b/lib/libc/regex/regfree.c index cd6b3dc58502..4266d1c81aea 100644 --- a/lib/libc/regex/regfree.c +++ b/lib/libc/regex/regfree.c @@ -46,6 +46,7 @@ static char sccsid[] = "@(#)regfree.c 8.3 (Berkeley) 3/20/94"; #include <sys/types.h> #include <stdio.h> #include <stdlib.h> +#include <limits.h> #include <regex.h> #include "utils.h" @@ -79,7 +80,7 @@ regex_t *preg; if (g->must != NULL) free(g->must); if (g->charjump != NULL) - free(g->charjump); + free(&g->charjump[CHAR_MIN]); if (g->matchjump != NULL) free(g->matchjump); free((char *)g); |
