Call tp_clear of base unmanaged type by lostmsu · Pull Request #1541 · pythonnet/pythonnet
…ject instance is cleared fixes pythonnet#1476 : C# exceptions inherit from Python BaseException class, which has tp_clear. Prior to this change it was not called, leaving dangling references to BaseException.args and BaseException.__cause__.call tp_clear of base unmanaged type when a reflected CLR object instance is cleared fixes pythonnet#1476 : C# exceptions inherit from Python BaseException class, which has tp_clear. Prior to this change it was not called, leaving dangling references to BaseException.args and BaseException.__cause__.
lostmsu
deleted the
bugs/MemLeak-CatchingExceptions
branch
lostmsu
restored the
bugs/MemLeak-CatchingExceptions
branch
lostmsu
deleted the
bugs/MemLeak-CatchingExceptions
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters