Skip to content

Commit

Permalink
Increase reference count
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Nov 17, 2024
1 parent 79eddc2 commit d6dd9fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsonyx/_speedups.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,8 @@ scanner_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
s->allow_trailing_comma = allow_trailing_comma;
s->allow_unquoted_keys = allow_unquoted_keys;
s->use_decimal = use_decimal;
Py_INCREF(s->mapping_type);
Py_INCREF(s->seq_type);
return (PyObject *)s;

bail:
Expand Down

0 comments on commit d6dd9fe

Please sign in to comment.