Kaydet (Commit) 9b30f206 authored tarafından Walter Dörwald's avatar Walter Dörwald

Fix another refcounting leak in PyUnicode_EncodeCharmap().

üst d4ade088
......@@ -3027,8 +3027,10 @@ PyObject *PyUnicode_EncodeCharmap(const Py_UNICODE *p,
if (charmap_encoding_error(p, size, &inpos, mapping,
&exc,
&known_errorHandler, &errorHandler, errors,
&res, &respos))
&res, &respos)) {
Py_DECREF(x);
goto onError;
}
}
else
/* done with this character => adjust input position */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment