Revert "follow-up 2: follow the conventional approach"

This reverts commit 6920632df0.
This commit is contained in:
nhmall
2022-06-30 22:37:12 -04:00
parent 43941afe19
commit 66a1e19d26

View File

@@ -42,7 +42,7 @@ extern "C" {
const char *regex_error_desc(struct nhregex *re) {
if (re->err) {
if (cppregex_static_buffer != 0)
free((genericptr_t) cppregex_static_buffer);
free(cppregex_static_buffer);
cppregex_static_buffer = dupstr(re->err->what());
return cppregex_static_buffer;
} else