We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051d070 commit 7181b30Copy full SHA for 7181b30
1 file changed
Objects/stringlib/codecs.h
@@ -454,6 +454,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode,
454
455
#if STRINGLIB_SIZEOF_CHAR > 1
456
error:
457
+ PyBytesWriter_Discard(writer);
458
Py_XDECREF(rep);
459
Py_XDECREF(error_handler_obj);
460
Py_XDECREF(exc);
0 commit comments