Skip to content

Commit 62b9766

Browse files
Update src/PyListProxyHandler.cc
Co-authored-by: Caleb Aikens <[email protected]>
1 parent ba45317 commit 62b9766

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PyListProxyHandler.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ static bool makeNewPyMethod(JSContext *cx, JS::MutableHandleValue function, JS::
4747
thisValue.setObject(*thisObject);
4848
PyObject *newSelf = pyTypeFactory(cx, thisValue);
4949
function.set(jsTypeFactory(cx, PyMethod_New(func, newSelf)));
50+
Py_DECREF(newSelf);
5051

5152
return true;
5253
}

0 commit comments

Comments
 (0)