From c91ab0030062f5699d51b3969dd5b61409193f04 Mon Sep 17 00:00:00 2001 From: pithikos Date: Fri, 9 Jan 2015 17:35:04 +0000 Subject: [PATCH] Memore leaks solved --- tests/memleaks | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/memleaks b/tests/memleaks index 7b00984..b621387 100755 --- a/tests/memleaks +++ b/tests/memleaks @@ -124,10 +124,8 @@ EOF heap_usage=$(echo "$output" | grep "total heap usage") allocs=$(extract_num "[0-9]* allocs" "$heap_usage") frees=$(extract_num "[0-9]* frees" "$heap_usage") - if (( "$allocs"-"$frees" > 4 )); then - #if [ "$allocs" != "$frees" ]; then - msg2="Max 4 leaks are allowed since each pthread might erronoumesly show a leak in valgrind." - err "Allocated $allocs times but freed only $frees. $msg2" "$output" + if [ "$allocs" != "$frees" ]; then + err "Allocated $allocs times but freed only $frees" "$output" fi done }