Repository navigation
Fix Ref Leak - #162
Fix Ref Leak#162
Conversation
|
cached_property still has the inc as well.. I thought we had a failure in production without this. I'll retest |
Sounds good. :) I just added a fix for it as well. |
|
downstream ci passes. So |
|
Thanks @Vizonex |
|
I'll do a release as soon as the CI passes |
Your welcome :) I should've been a lot more defensive when I was making the original pr at least it's safe for us to use now. |
|
Hopefully the next release fixes the bug. |
|
https://docs.python.org/3/c-api/call.html#c.PyObject_CallOneArg -- returns a new ref Hmm do we still have a leak if the value comes from |
It's all good. We all learn from our mistakes. |
Might be something worth testing do you know of a pytest we could add to prevent future bogus claims? |
|
Check this comment #159 (comment) -- It looks like they are concerned about the same issue |
|
... I think we want...
I think the |
I added tests |
CodSpeed Performance ReportMerging #162 will not alter performanceComparing Summary
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #162 +/- ##
==========================================
- Coverage 97.76% 97.63% -0.14%
==========================================
Files 17 17
Lines 762 847 +85
Branches 41 44 +3
==========================================
+ Hits 745 827 +82
- Misses 9 12 +3
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
codecov reporting is wrong. Its reporting on the genexpr inner code which is obviously covered |


What do these changes do?
Removing the ref counter will prevent future ref-leaking Honestly this addition was not my idea and should've never passed due to the fact that cython has it's own ref-counter-system and should be only used in the case of passing a python object to <void*> and back out again
Are there changes in behavior for the user?
Ref counters fixed means we don't end up having ref leaks ever again
Related issue number
fixes #159
Checklist