diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-04-29 14:53:08 (GMT) |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-04-29 14:53:08 (GMT) |
commit | 572f5233f0263ab75782bbce4bd67259d73e32ac (patch) | |
tree | e2a6945a7feddd4b34febd527a13f024827a94dd /Modules | |
parent | a649e9cb7af5be27ac66b7e128417b8c7e093264 (diff) | |
download | cpython-572f5233f0263ab75782bbce4bd67259d73e32ac.zip cpython-572f5233f0263ab75782bbce4bd67259d73e32ac.tar.gz cpython-572f5233f0263ab75782bbce4bd67259d73e32ac.tar.bz2 |
Applying patch #728656, by logistix, fixing opening of nonexistent
bz2 files. Also, included a testcase for this problem.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/bz2module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ BZ2File_dealloc(BZ2FileObject *self) break; } Util_DropReadAhead(self); - Py_DECREF(self->file); + Py_XDECREF(self->file); self->ob_type->tp_free((PyObject *)self); } |