Commit eded0a5d authored by Kevin Modzelewski's avatar Kevin Modzelewski

ctypes_traceback.py

parent c4804fe4
......@@ -194,12 +194,11 @@ public:
}
static Box* createFrame(Box* back, BoxedCode* code, Box* globals, Box* locals) {
assert(0 && "check refcounting");
BoxedFrame* frame = new BoxedFrame(NULL);
frame->_back = incref(back);
frame->_code = (Box*)incref(code);
frame->_globals = incref(globals);
frame->_locals = incref(locals);
frame->_back = xincref(back);
frame->_code = (Box*)xincref(code);
frame->_globals = xincref(globals);
frame->_locals = xincref(locals);
frame->_linenumber = -1;
return frame;
}
......
# expected: reffail
from ctypes import *
libc = CDLL("libc.so.6")
qsort = libc.qsort
......
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