Skip to content

Commit a6c6888

Browse files
committed
keep unloading the dbi
1 parent b3f8f07 commit a6c6888

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/SOS/SOS.Hosting/RuntimeWrapper.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@ protected override void Destroy()
156156
ComWrapper.ReleaseWithCheck(_cdacDataProcess);
157157
_cdacDataProcess = IntPtr.Zero;
158158
}
159+
if (_dacHandle != IntPtr.Zero)
160+
{
161+
_dacHandle = IntPtr.Zero;
162+
}
163+
if (_cdacHandle != IntPtr.Zero)
164+
{
165+
_cdacHandle = IntPtr.Zero;
166+
}
167+
if (_dbiHandle != IntPtr.Zero)
168+
{
169+
DataTarget.PlatformFunctions.FreeLibrary(_dbiHandle);
170+
_dbiHandle = IntPtr.Zero;
171+
}
159172
}
160173

161174
#region IRuntime (native)

0 commit comments

Comments
 (0)