Skip to content

Commit ea5e749

Browse files
fix: use correct regex_free_machine() in regexMain.c regression block
regex_free() is not declared; the correct API function is regex_free_machine(). Fixes -Werror=implicit-function-declaration in the CI aarch64 build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 123a7ce commit ea5e749

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

regex_src/regexMain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ int main(int argc, char* argv[])
338338
"(a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z){1000}",
339339
64, 0, &err);
340340
if (machine)
341-
regex_free(machine);
341+
regex_free_machine(machine);
342342
else if (err != REGEX_MEMORY_ERROR) {
343343
printf("FAIL: overflow regression returned unexpected error %d\n", err);
344344
return 1;

0 commit comments

Comments
 (0)