valgrind mac os mem leak

前端 未结 2 1527
野的像风
野的像风 2020-12-09 18:18

Today I installed valgrind on my Mac os x 10.6 and tried to test it out. And it turned out to be weird memory leaks in the system. What I did was just create simple c file t

相关标签:
2条回答
  • 2020-12-09 18:59

    And for Mac OS X Lion, you should use this suppression file : https://github.com/svn2github/valgrind/blob/master/darwin11.supp

    0 讨论(0)
  • 2020-12-09 19:09

    You may need to use a valgrind suppressions file for Mac. Looks like some process-wide memory is allocated by not freed when the process exits. Try with valgrind --suppressions=<path to suppression file>.

    0 讨论(0)
提交回复
热议问题