BUG-fixed version of mallochook