← Winnitude! Search  ·  Reader Mode (2192 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 46 LINKS

fixed crash due to a decref of a borrowed reference in params array handling by lostmsu · Pull Request #1163 · pythonnet/pythonnet

Repository navigation

fixed crash due to a decref of a borrowed reference in params array handling - #1163


Merged
filmor merged 1 commit into pythonnet:master from losttech:PR/ParamsArrayRefcount Jun 18, 2020
Merged

fixed crash due to a decref of a borrowed reference in params array handling #1163 filmor merged 1 commit into pythonnet:master from losttech:PR/ParamsArrayRefcount

Conversation

lostmsu commented Jun 17, 2020



Copy link Copy Markdown
Member

What does this implement/fix? Explain your changes.

item is a return value of PyTuple_GetItem which returns borrowed reference.

Hence it should not have been decref'ed

fixed crash due to unnecessary decref of a borrowed reference in para... d87d033
...ms array handling
lostmsu requested a review from filmor June 17, 2020 22:56 lostmsu mentioned this pull request Jun 17, 2020 Bad refcounting in HandleParamsArray (2.x backport) #1164 Closed

codecov-commenter commented Jun 17, 2020 · edited Loading



Copy link Copy Markdown

Codecov Report

Merging #1163 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1163   +/-   ##
=======================================
  Coverage   86.53%   86.53%           
=======================================
  Files           1        1           
  Lines         297      297           
=======================================
  Hits          257      257           
  Misses         40       40           
Flag Coverage Δ
#setup_linux 64.98% <ø> (ø)
#setup_windows 72.05% <ø> (ø)

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 742463e...d87d033 . Read the comment docs .

filmor approved these changes Jun 18, 2020
View reviewed changes
filmor merged commit d8b0200 into pythonnet : master Jun 18, 2020 filmor pushed a commit that referenced this pull request Jun 18, 2020 Fixed crash due to unnecessary decref of a borrowed reference in para... b85104b
...ms array handling (#1163)
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull request Jun 29, 2020 fixed crash due to unnecessary decref of a borrowed reference in para... 8126db6
...ms array handling (pythonnet#1163)
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

3 participants