more _PyString_Resize error checking
diff --git a/Python/marshal.c b/Python/marshal.c
index c7015d2..9e4a692 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -1237,7 +1237,8 @@
 					"too much marshall data for a string");
 			return NULL;
 		}
-		_PyString_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base));
+		if (_PyString_Resize(&wf.str, (Py_ssize_t)(wf.ptr - base)))
+			return NULL;
 	}
 	if (wf.error != WFERR_OK) {
 		Py_XDECREF(wf.str);