Made checks on client have own macro.

This commit is contained in:
Matthew Parkinson
2019-06-12 15:26:42 +01:00
parent 7153f2169c
commit cc6a9775d6
4 changed files with 13 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ namespace snmalloc
bool was_full = meta.is_full();
#ifndef NDEBUG
#ifdef CHECK_CLIENT
if (meta.is_unused())
error("Detected potential double free.");
#endif