Add double-free detect test