Skip to content

Commit 443cb70

Browse files
committed
Fix memory leak in regex test program.
1 parent accc67c commit 443cb70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ AC_LANG_PROGRAM([
343343
regex_t re;
344344
regcomp(&re, "abc", REG_EXTENDED);
345345
regexec(&re, "", 0, 0, 0);
346+
regfree(&re);
346347
return 0;
347348
])
348349
], [AC_MSG_RESULT([yes])],

0 commit comments

Comments
 (0)