allocstats: assert count doesn't go negative

This commit is contained in:
Nathaniel Filardo
2019-08-03 22:51:22 +01:00
parent 574700318e
commit 3b2f521c46

View File

@@ -34,6 +34,7 @@ namespace snmalloc
void dec()
{
assert(current > 0);
current--;
}