follow-up 3

This commit is contained in:
nhmall
2022-06-30 13:27:46 -04:00
parent 6920632df0
commit cd57dfa5ff
4 changed files with 23 additions and 0 deletions

View File

@@ -63,3 +63,13 @@ extern "C" {
delete re;
}
}
void
regex_at_exit(void)
{
if (cppregex_static_buffer != 0) {
free((genericptr_t) cppregex_static_buffer);
cppregex_static_buffer = (char *) 0;
}
}