Skip to content

Fix check in PyScope so that we don't leak a reference. #500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

filmor
Copy link
Member

@filmor filmor commented Jun 19, 2017

PyObject_TYPE does not Incref the type object returned, in contrast to PyObject_Type, which was used here before.

`PyObject_TYPE` does not `Incref` the type object returned, in contrast
to `PyObject_Type`, which was used here before.
@codecov
Copy link

codecov bot commented Jun 19, 2017

Codecov Report

Merging #500 into master will increase coverage by 0.03%.
The diff coverage is 25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #500      +/-   ##
==========================================
+ Coverage   76.38%   76.41%   +0.03%     
==========================================
  Files          64       64              
  Lines        5573     5572       -1     
  Branches      896      895       -1     
==========================================
+ Hits         4257     4258       +1     
+ Misses       1021     1020       -1     
+ Partials      295      294       -1
Flag Coverage Δ
#setup_linux 75.71% <ø> (ø) ⬆️
#setup_windows 75.77% <25%> (+0.03%) ⬆️
Impacted Files Coverage Δ
src/runtime/pyscope.cs 58.7% <25%> (+0.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12af794...21913da. Read the comment docs.

@filmor filmor merged commit c8ae358 into pythonnet:master Jun 20, 2017
@filmor filmor deleted the fix-pyscope-leak branch June 20, 2017 06:36
testrunner123 pushed a commit to testrunner123/pythonnet that referenced this pull request Sep 22, 2017
`PyObject_TYPE` does not `Incref` the type object returned, in contrast
to `PyObject_Type`, which was used here before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants