diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/runtests.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/posix/runtests.c b/posix/runtests.c index 2a5ef6c820..ea1efb6bf1 100644 --- a/posix/runtests.c +++ b/posix/runtests.c @@ -71,6 +71,9 @@ run_a_test (int id, const struct a_test * t) puts (" OK."); return 0; } + if (last_pattern) + regfree (&r); + last_pattern = NULL; regerror (err, &r, errmsg, 100); printf ("test %d\n", id); puts (errmsg); |