Only run __libc_freeres() when valgrinding.  It may do invalid free()s
which cause the low-level memory manager to crash.  When valgrinding
that's all protected, but not when cachegrinding etc.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@537 a5019735-40e9-0310-863c-91ae7b9d1cf9
2 files changed