Enable mallopt check action if flags say so
This commit is contained in:
@@ -291,6 +291,9 @@ SetMallocFlags(u_long aFlags)
|
||||
close(gLogFD);
|
||||
gLogFD = -1;
|
||||
}
|
||||
if (LIBMALLOC_CHECK & gFlags) {
|
||||
mallopt(M_CHECK_ACTION, 1);
|
||||
}
|
||||
|
||||
// Try to guarantee that the address map is always dumped
|
||||
atexit(DumpAddressMap);
|
||||
|
||||
Reference in New Issue
Block a user