From 447755d6c8951bdf9593dab9593dac368bcaa372 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 18 Jun 2021 20:35:05 +0100 Subject: [Test] Slightly reorganize tests --- test/rspamd_cxx_unit_utils.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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; } } -- cgit v1.2.3