You can force a full allocation chain check at certain points while your program is executing, without turning on chain checking.
Specify the following option for the cmd argument to the librcheck version of mallopt():