Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Avoid possible crash in ``getpath.c`` where a device has no memory left. Now
it properly raises a :exc:`MemoryError`. Patch by Ivy Xu.
1 change: 1 addition & 0 deletions Modules/getpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ getpath_readlines(PyObject *Py_UNUSED(self), PyObject *args)
if (!buffer) {
Py_DECREF(r);
fclose(fp);
PyErr_NoMemory();
return NULL;
}

Expand Down
Loading