summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index e519fc9..e97de59 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -998,6 +998,10 @@ r_object(RFILE *p)
else {
v = PyUnicode_New(0, 0);
}
+ if (v == NULL) {
+ retval = NULL;
+ break;
+ }
if (type == TYPE_INTERNED)
PyUnicode_InternInPlace(&v);
retval = v;