summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-11 23:05:40 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-11 23:05:40 (GMT)
commitec74f2fda79663d9e61d704315b737e262b83618 (patch)
tree5d26976de4c27c1acf0d3b3c43b88c55860a0bf3 /Modules/posixmodule.c
parent42f08ac1e303117ea789a8ad2a1326db75f923f8 (diff)
downloadcpython-ec74f2fda79663d9e61d704315b737e262b83618.zip
cpython-ec74f2fda79663d9e61d704315b737e262b83618.tar.gz
cpython-ec74f2fda79663d9e61d704315b737e262b83618.tar.bz2
Add more missing PyErr_NoMemory() after failled memory allocs
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 9dea4b5..c6e1a87 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2251,7 +2251,7 @@ posix_execv(PyObject *self, PyObject *args)
argvlist = PyMem_NEW(char *, argc+1);
if (argvlist == NULL) {
PyMem_Free(path);
- return NULL;
+ return PyErr_NoMemory();
}
for (i = 0; i < argc; i++) {
if (!PyArg_Parse((*getitem)(argv, i), "et",
@@ -2480,7 +2480,7 @@ posix_spawnv(PyObject *self, PyObject *args)
argvlist = PyMem_NEW(char *, argc+1);
if (argvlist == NULL) {
PyMem_Free(path);
- return NULL;
+ return PyErr_NoMemory();
}
for (i = 0; i < argc; i++) {
if (!PyArg_Parse((*getitem)(argv, i), "et",