Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9d2c1 commit 178cbc8Copy full SHA for 178cbc8
src/runtime/runtime.cs
@@ -463,14 +463,17 @@ private static void RunExitFuncs()
463
// The runtime may not provided `atexit` module.
464
return;
465
}
466
- try
+ using (atexit)
467
{
468
- atexit.InvokeMethod("_run_exitfuncs").Dispose();
469
- }
470
- catch (PythonException e)
471
- {
472
- Console.Error.WriteLine(e);
473
- e.Dispose();
+ try
+ {
+ atexit.InvokeMethod("_run_exitfuncs").Dispose();
+ }
+ catch (PythonException e)
474
+ Console.Error.WriteLine(e);
475
+ e.Dispose();
476
477
478
479
0 commit comments