diff --git a/src/main.cc b/src/main.cc index a3e7f37e9d..45dbbec983 100644 --- a/src/main.cc +++ b/src/main.cc @@ -454,6 +454,7 @@ int main(int argc, char** argv) #else doctest::Context context; context.applyCommandLine(std::distance(first, separator), argv); + ZEEK_LSAN_ENABLE(); return context.run(); #endif } diff --git a/src/util.cc b/src/util.cc index 9a5e2d9355..2b46e38f7b 100644 --- a/src/util.cc +++ b/src/util.cc @@ -167,6 +167,7 @@ TEST_CASE("util get_escaped_string") { ODesc* d = get_escaped_string(nullptr, "a bcd\n", 6, false); CHECK(strcmp(d->Description(), "a\\x20bcd\\x0a") == 0); + delete d; } SUBCASE("provided ODesc")