summaryrefslogtreecommitdiff
path: root/lib/libc/regex/regfree.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/regex/regfree.c')
-rw-r--r--lib/libc/regex/regfree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/regex/regfree.c b/lib/libc/regex/regfree.c
index 82f506ab826..ae962745ab4 100644
--- a/lib/libc/regex/regfree.c
+++ b/lib/libc/regex/regfree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regfree.c,v 1.9 2015/09/14 12:22:49 guenther Exp $ */
+/* $OpenBSD: regfree.c,v 1.10 2015/12/28 22:08:18 mmcc Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -66,8 +66,7 @@ regfree(regex_t *preg)
free((char *)g->sets);
if (g->setbits != NULL)
free((char *)g->setbits);
- if (g->must != NULL)
- free(g->must);
+ free(g->must);
free((char *)g);
}
DEF_WEAK(regfree);