commit | 572f5233f0263ab75782bbce4bd67259d73e32ac | [log] [tgz] |
---|---|---|
author | Gustavo Niemeyer <gustavo@niemeyer.net> | Tue Apr 29 14:53:08 2003 +0000 |
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | Tue Apr 29 14:53:08 2003 +0000 |
tree | e2a6945a7feddd4b34febd527a13f024827a94dd | |
parent | a649e9cb7af5be27ac66b7e128417b8c7e093264 [diff] [blame] |
Applying patch #728656, by logistix, fixing opening of nonexistent bz2 files. Also, included a testcase for this problem.
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 1fb6665..9289a02 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c
@@ -1388,7 +1388,7 @@ break; } Util_DropReadAhead(self); - Py_DECREF(self->file); + Py_XDECREF(self->file); self->ob_type->tp_free((PyObject *)self); }