Use calloc instead of malloc to pacify valgrind.

This commit is contained in:
Markus F.X.J. Oberhumer
2016-09-28 21:30:38 +02:00
parent b0841268bd
commit e41c475671
3 changed files with 14 additions and 2 deletions
+4 -1
View File
@@ -79,7 +79,10 @@ if [[ $TRAVIS_OS_NAME == osx ]]; then
fi
upx=$PWD/upx.out
if [[ $B =~ (^|\+)valgrind($|\+) ]]; then
upx="valgrind --leak-check=full --show-reachable=yes $upx"
valgrind_flags="--leak-check=full --show-reachable=yes"
valgrind_flags="-q --leak-check=no --error-exitcode=1"
valgrind_flags="--leak-check=no --error-exitcode=1"
upx="valgrind $valgrind_flags $upx"
fi
upx_391=
if [[ $TRAVIS_OS_NAME == linux ]]; then
+4 -1
View File
@@ -29,7 +29,10 @@ if [[ $TRAVIS_OS_NAME == osx ]]; then
fi
upx=$PWD/upx.out
if [[ $B =~ (^|\+)valgrind($|\+) ]]; then
upx="valgrind --leak-check=full --show-reachable=yes $upx"
valgrind_flags="--leak-check=full --show-reachable=yes"
valgrind_flags="-q --leak-check=no --error-exitcode=1"
valgrind_flags="--leak-check=no --error-exitcode=1"
upx="valgrind $valgrind_flags $upx"
fi
upx_391=
if [[ $TRAVIS_OS_NAME == linux ]]; then