Skip to content

Commit

Permalink
Fix the unknown option in valgrind
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
ZhuMon committed Mar 11, 2020
1 parent 7dc8981 commit 150a980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .valgrindrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--quiet
--memcheck:leak-check=full
--show-leak-kinds=all
--memcheck:show-leak-kinds=all
--error-exitcode=1

0 comments on commit 150a980

Please sign in to comment.