8000 Fix refleak in ParamSpecArgs/Kwargs · python/cpython@7fa37b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fa37b4

Browse files
committed
Fix refleak in ParamSpecArgs/Kwargs
1 parent 445a39b commit 7fa37b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/typevarobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,15 @@ typedef struct {
503503
static void
504504
paramspecattr_dealloc(PyObject *self)
505505
{
506+
PyTypeObject *tp = Py_TYPE(self);
506507
paramspecattrobject *psa = (paramspecattrobject *)self;
507508

508509
_PyObject_GC_UNTRACK(self);
509510

510511
Py_XDECREF(psa->__origin__);
511512

512513
Py_TYPE(self)->tp_free(self);
514+
Py_DECREF(tp);
513515
}
514516

515517
static int

0 commit comments

Comments
 (0)
0