diff options
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 6b3559e..533186b 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -1237,5 +1237,6 @@ PyFrame_GetCode(PyFrameObject *frame) assert(frame != NULL); PyCodeObject *code = frame->f_code; assert(code != NULL); + Py_INCREF(code); return code; } |