From 328fa499810659da009e54fdf2beea119cf017bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 15 Oct 2021 20:43:30 +0200 Subject: [PATCH] Fixed #10529 (Cleanup dump and ctu-info files) --- lib/cppcheck.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 7b59a56c0..686ba350d 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1391,6 +1391,9 @@ void CppCheck::executeAddons(const std::vector& files) reportErr(errmsg); } } + + if (!fileList.empty()) + std::remove(fileList.c_str()); } void CppCheck::executeAddonsWholeProgram(const std::map &files) @@ -1405,6 +1408,10 @@ void CppCheck::executeAddonsWholeProgram(const std::map