Skip to content

Commit

Permalink
Update Modules/_json.c
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt authored Apr 24, 2024
1 parent 311b7df commit ed2c806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -1633,8 +1633,8 @@ encoder_listencode_dict(PyEncoderObject *s, _PyUnicodeWriter *writer,
Py_CLEAR(ident);
}
if (s->indent != Py_None) {
Py_DECREF(newline_indent);
Py_DECREF(separator_indent);
Py_CLEAR(newline_indent);
Py_CLEAR(separator_indent);
indent_level--;

if (_PyUnicodeWriter_WriteStr(writer, current_newline_indent) < 0) {
Expand Down

0 comments on commit ed2c806

Please sign in to comment.