commit | 016b366df4c8c3fc25f103fadb613fc5254b9f88 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Aug 09 17:22:25 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Aug 09 17:22:25 2008 +0000 |
tree | dfdefead947dd277a583918d4f0841e8f70b07b7 | |
parent | 59ce901a2052ca520a0c044f5d547e74cc290061 [diff] [blame] |
#3205: bz2 iterator fails silently on MemoryError
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 16201bd..3929219 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