From ffb05619cadadd8655b8719818ed566caaa6d0a6 Mon Sep 17 00:00:00 2001 From: Milot Mirdita Date: Fri, 2 Aug 2024 12:51:54 +0900 Subject: [PATCH] Fix mismatched new[],delete --- src/commons/Parameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commons/Parameters.cpp b/src/commons/Parameters.cpp index afc56ba96..34e429811 100644 --- a/src/commons/Parameters.cpp +++ b/src/commons/Parameters.cpp @@ -1870,7 +1870,7 @@ void Parameters::parseParameters(int argc, const char *pargv[], const Command &c EXIT(EXIT_FAILURE); } filenames.emplace_back(posix); - delete posix; + delete[] posix; } #else filenames.emplace_back(pargv[argIdx]);