Updated leak message with total leaks (in bytes).
This commit is contained in:
parent
88e09ca813
commit
c84330b26a
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ scl_memmgr::~scl_memmgr(void) {
|
|||
// Check if total allocated equals total deallocated
|
||||
if (_allocated_total != _deallocated_total) {
|
||||
// todo: generate warning for possible memory leaks, enable full memory leak checking
|
||||
printf("scl_memmgr warning: Possible memory leaks detected\n");
|
||||
printf("scl_memmgr warning: Possible memory leaks detected (%d of %d bytes)\n", _allocated_total - _deallocated_total, _allocated_total);
|
||||
}
|
||||
|
||||
// Compact leaks into an error list to prevent same leak being reported multiple times.
|
||||
|
|
|
|||
Loading…
Reference in a new issue