Applying patch #728656, by logistix, fixing opening of nonexistent

bz2 files. Also, included a testcase for this problem.
This commit is contained in:
Gustavo Niemeyer 2003-04-29 14:53:08 +00:00
parent a649e9cb7a
commit 572f5233f0
2 changed files with 6 additions and 1 deletions

View file

@ -1388,7 +1388,7 @@ BZ2File_dealloc(BZ2FileObject *self)
break;
}
Util_DropReadAhead(self);
Py_DECREF(self->file);
Py_XDECREF(self->file);
self->ob_type->tp_free((PyObject *)self);
}