diff --git a/test/regression/regression.cc b/test/regression/regression.cc index 575ebfbb..9da1728c 100644 --- a/test/regression/regression.cc +++ b/test/regression/regression.cc @@ -71,7 +71,9 @@ void actions(ModSecurityTestResults *r, r->status = it.status; } if (it.url != NULL) { - r->location = it.url; + r->location.append(it.url); + free(it.url); + it.url = NULL; } if (it.log != NULL) { free(it.log);