mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-21 21:21:23 +03:00
Update memleaks
This commit is contained in:
parent
a0520c1731
commit
e1c51484d7
@ -25,6 +25,7 @@ function test_thread_free { #threads
|
||||
return
|
||||
fi
|
||||
err "Allocated $allocs times but freed only $frees" "$output"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
@ -40,9 +41,11 @@ function test_thread_free_multi { #threads #times
|
||||
frees=$(extract_num "[0-9]* frees" "$heap_usage")
|
||||
if (( "$allocs" == 0 )); then
|
||||
err "Allocated 0 times. Something is wrong.." "$output"
|
||||
exit 1
|
||||
fi
|
||||
if (( "$allocs" != "$frees" )); then
|
||||
err "Allocated $allocs times but freed only $frees" "$output"
|
||||
exit 1
|
||||
fi
|
||||
#echo "Allocs: $allocs Frees: $frees"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user