aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_cxx_unit_utils.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/rspamd_cxx_unit_utils.hxx')
-rw-r--r--test/rspamd_cxx_unit_utils.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rspamd_cxx_unit_utils.hxx b/test/rspamd_cxx_unit_utils.hxx
index a65adab70..f5c532ff5 100644
--- a/test/rspamd_cxx_unit_utils.hxx
+++ b/test/rspamd_cxx_unit_utils.hxx
@@ -46,6 +46,7 @@ TEST_CASE("rspamd_strip_smtp_comments_inplace") {
memcpy(cpy, c.first.data(), c.first.size());
auto nlen = rspamd_strip_smtp_comments_inplace(cpy, c.first.size());
CHECK(std::string{cpy,nlen} == c.second);
+ delete[] cpy;
}
}