Calling isinstance(x,t) repeatedly when x or t is not actually a CLR …#273
Conversation
…object will leak reference counts to PyFalse, resulting in memory corruption once the reference count drops to zero and PyFalse gets freed
|
If you run the simple test I added you will most likely get a crash. Every invocation of DoInstanceCheck will return PyFalse, from this callstack: |
|
Yep, looks a lot more correct than before, thanks for catching this :) |
|
Great, thanks for the quick turnaround! |
…object will leak reference counts to PyFalse, resulting in memory corruption once the reference count drops to zero and PyFalse gets freed