Fix double free in stmt_dtor