Author: Devin Jeanpierre <[email protected]>
Branch:
Changeset: r83923:bd19ad98a253
Date: 2016-04-25 13:29 -0700
http://bitbucket.org/pypy/pypy/changeset/bd19ad98a253/
Log: Move decref somewhere less worrisome.
diff --git a/pypy/module/cpyext/listobject.py b/pypy/module/cpyext/listobject.py
--- a/pypy/module/cpyext/listobject.py
+++ b/pypy/module/cpyext/listobject.py
@@ -32,9 +32,9 @@
"""
assert isinstance(w_list, W_ListObject)
assert 0 <= index < w_list.length
- Py_DecRef(space, w_item)
# Deliberately leak, so that it can be safely decref'd.
make_ref(space, w_list.getitem(index))
+ Py_DecRef(space, w_item)
w_list.setitem(index, w_item)
return 0
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit