Enable mallopt check action if flags say so

This commit is contained in:
kipp@netscape.com
1999-08-27 21:56:03 +00:00
parent 86bc4da7e2
commit 3d72c85030

View File

@@ -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);