Skip to content

Commit

Permalink
Merge pull request #826 from Thrameos/tracebug
Browse files Browse the repository at this point in the history
Fix referencing bug
  • Loading branch information
marscher authored Aug 7, 2020
2 parents aa31348 + f5be4cc commit 4a48459
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
This changelog *only* contains changes from the *first* pypi release (0.5.4.3) onwards.

Latest Changes:

- Fixed reference count problem in stackframes used for exceptions.

- **1.0.2_dev0 - 2020-07-16**

- java.util.Iterable will take a Python sequence as an implicit conversion.
Expand Down
3 changes: 3 additions & 0 deletions native/common/jp_exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,10 @@ PyTracebackObject *tb_create(
PyFrameObject *frame = (PyFrameObject*) PyFrame_Type.tp_alloc(&PyFrame_Type, 0);
frame->f_back = NULL;
if (last_traceback != NULL)
{
frame->f_back = last_traceback->tb_frame;
Py_INCREF(frame->f_back);
}
frame->f_builtins = dict;
Py_INCREF(frame->f_builtins);
frame->f_code = (PyCodeObject*) code;
Expand Down

0 comments on commit 4a48459

Please sign in to comment.