summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 83829d2..6adc2be 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -699,8 +699,10 @@ Py_Malloc(nbytes)
p = malloc(nbytes);
if (p != NULL)
return p;
- else
- return PyErr_NoMemory();
+ else {
+ PyErr_NoMemory();
+ return NULL;
+ }
}
ANY *
@@ -715,8 +717,10 @@ Py_Realloc(p, nbytes)
p = realloc(p, nbytes);
if (p != NULL)
return p;
- else
- return PyErr_NoMemory();
+ else {
+ PyErr_NoMemory();
+ return NULL;
+ }
}
void