Skip to content

Commit 7ee651c

Browse files
committed
Undo increfs that should not be required
1 parent a58199f commit 7ee651c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/runtime/pythonexception.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ public PythonException()
8787
public void Restore()
8888
{
8989
IntPtr gs = PythonEngine.AcquireLock();
90-
Runtime.XIncref(_pyType);
91-
Runtime.XIncref(_pyValue);
92-
Runtime.XIncref(_pyTB);
9390
Runtime.PyErr_Restore(_pyType, _pyValue, _pyTB);
9491
_pyType = IntPtr.Zero;
9592
_pyValue = IntPtr.Zero;

0 commit comments

Comments
 (0)