Skip to content

Commit 0992cfb

Browse files
Free the native memory associated with the new TargetMethodArgumentsToLoad array in the Marshal'ed NativeCallTargetDefinition
1 parent a9fabf6 commit 0992cfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tracer/src/Datadog.Trace/ClrProfiler/NativeCallTargetDefinition.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public void Dispose()
112112
}
113113

114114
Marshal.FreeHGlobal(TargetSignatureTypes);
115+
if (TargetMethodArgumentsToLoadLength > 0)
116+
{
117+
Marshal.FreeHGlobal(TargetMethodArgumentsToLoad);
118+
}
115119
}
116120
}
117121
}

0 commit comments

Comments
 (0)