Fix the double-free bug and disable double free debugging.
Remove large heap flag.