From 150a980dbb9ccea6d392556b404cd38a4281a256 Mon Sep 17 00:00:00 2001 From: YuXiang Date: Thu, 12 Mar 2020 02:06:42 +0800 Subject: [PATCH] Fix the unknown option in valgrind Add memcheck in front of show-leak-kinds While using massif in valgrind, like below ``` valgrind --tool=massif ./qtest ``` It would return `Unknown option: --show-leak-kinds=all` In fact, the option `show-leak-kinds` should be called in `memcheck` Just like `memcheck:leak-check=full` --- .valgrindrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.valgrindrc b/.valgrindrc index 8c8a79c7c..fc414f79d 100644 --- a/.valgrindrc +++ b/.valgrindrc @@ -1,4 +1,4 @@ --quiet --memcheck:leak-check=full ---show-leak-kinds=all +--memcheck:show-leak-kinds=all --error-exitcode=1