# Bug report

@encukou noticed that the free-threaded buildbots were reporting a lot of negative refcount deltas (among other problems). This is because `_Py_NewRefWithLock` is missing a `_Py_IncRefTotal` (although it has a `_Py_INCREF_STAT_INC`).

https://github.com/python/cpython/blob/1c04c63ced5038e8f45a2aac7dc45f0815a4ddc5/Include/internal/pycore_object.h#L494-L514

<!-- gh-linked-prs -->
### Linked PRs
* gh-119800
* gh-119878
<!-- /gh-linked-prs -->

`_Py_NewRefWithLock` missing `_Py_IncRefTotal`
This is a GitHub Issue
repo:cpython
owner:python
Title : `_Py_NewRefWithLock` missing `_Py_IncRefTotal`
Issue date:

--- start body ---
# Bug report

@encukou noticed that the free-threaded buildbots were reporting a lot of negative refcount deltas (among other problems). This is because `_Py_NewRefWithLock` is missing a `_Py_IncRefTotal` (although it has a `_Py_INCREF_STAT_INC`).

https://github.com/python/cpython/blob/1c04c63ced5038e8f45a2aac7dc45f0815a4ddc5/Include/internal/pycore_object.h#L494-L514

<!-- gh-linked-prs -->
### Linked PRs
* gh-119800
* gh-119878
<!-- /gh-linked-prs -->

--- end body ---
