Commit 784938e6 authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by Kevin Modzelewski

Havent found a missing autoDecref in a while

parent 1874cddc
# expected: reffail
# - leaked refs
import unittest
from test import test_support
import operator
......
......@@ -661,7 +661,7 @@ extern "C" Box* listDelitem(BoxedList* self, Box* slice) {
Py_ssize_t i = PyNumber_AsSsize_t(slice, PyExc_IndexError);
if (i == -1 && PyErr_Occurred())
throwCAPIException();
rtn = listDelitemInt(self, (BoxedInt*)boxInt(i));
rtn = listDelitemInt(self, (BoxedInt*)autoDecref(boxInt(i)));
} else if (slice->cls == slice_cls) {
rtn = listDelitemSlice(self, static_cast<BoxedSlice*>(slice));
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment