diff --git a/test/src/unit-regression2.cpp b/test/src/unit-regression2.cpp index 56bb3f398..c20d72e38 100644 --- a/test/src/unit-regression2.cpp +++ b/test/src/unit-regression2.cpp @@ -168,7 +168,7 @@ class sax_no_exception : public nlohmann::detail::json_sax_dom_parser static bool parse_error(std::size_t /*position*/, const std::string& /*last_token*/, const json::exception& ex) { - error_string = new std::string(ex.what()); + error_string = new std::string(ex.what()); // NOLINT(cppcoreguidelines-owning-memory) return false; }