count leaks as errors