commit | e71268f93fa7e33f87180e2895aec5a14505c9fb | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue Aug 12 08:47:02 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Tue Aug 12 08:47:02 2008 +0000 |
tree | fd03c6fb9876988dd2f7fa8da0d74112054b4fa5 | |
parent | 032215451bd9a8fc3a068e8a77871277e0f162d8 [diff] [blame] |
#3205: bz2 iterator fails silently on MemoryError (backport from r65609)
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 7d33a77..9e868c5 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c
@@ -416,6 +416,7 @@ return 0; } if ((f->f_buf = PyMem_Malloc(bufsize)) == NULL) { + PyErr_NoMemory(); return -1; } Py_BEGIN_ALLOW_THREADS