From 572f5233f0263ab75782bbce4bd67259d73e32ac Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Tue, 29 Apr 2003 14:53:08 +0000 Subject: Applying patch #728656, by logistix, fixing opening of nonexistent bz2 files. Also, included a testcase for this problem. --- Modules/bz2module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/bz2module.c') diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 1fb6665085..9289a02b23 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); } -- cgit v1.2.1