mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Issue #20440: Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
This commit is contained in:
parent
a5892abf23
commit
4a1e70fc31
11 changed files with 63 additions and 106 deletions
|
@ -793,8 +793,7 @@ encoder_encode_stateful(MultibyteStatefulEncoderContext *ctx,
|
|||
ctx->errors, final ? MBENC_FLUSH | MBENC_RESET : 0);
|
||||
if (r == NULL) {
|
||||
/* recover the original pending buffer */
|
||||
Py_CLEAR(ctx->pending);
|
||||
ctx->pending = origpending;
|
||||
Py_SETREF(ctx->pending, origpending);
|
||||
origpending = NULL;
|
||||
goto errorexit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue