summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3c14b6b..4ae8766 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7664,6 +7664,7 @@ PyUnicode_DecodeCharmap(const char *s,
}
}
if (PyUnicode_Resize(&v, outpos) < 0)
+ goto onError;
Py_XDECREF(errorHandler);
Py_XDECREF(exc);
assert(_PyUnicode_CheckConsistency(v, 1));