Nullify variable to avoid double-free corruption.