diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2008-08-09 17:22:25 +0000 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-08-09 17:22:25 +0000 |
| commit | 016b366df4c8c3fc25f103fadb613fc5254b9f88 (patch) | |
| tree | dfdefead947dd277a583918d4f0841e8f70b07b7 /Modules | |
| parent | 59ce901a2052ca520a0c044f5d547e74cc290061 (diff) | |
| download | cpython-git-016b366df4c8c3fc25f103fadb613fc5254b9f88.tar.gz | |
#3205: bz2 iterator fails silently on MemoryError
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/bz2module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 16201bd648..39292197d8 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c @@ -416,6 +416,7 @@ Util_ReadAhead(BZ2FileObject *f, int bufsize) return 0; } if ((f->f_buf = PyMem_Malloc(bufsize)) == NULL) { + PyErr_NoMemory(); return -1; } Py_BEGIN_ALLOW_THREADS |
