Skip to content

Commit

Permalink
missing dispose for GetCurrentProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 9, 2024
1 parent bb383dd commit a503e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IdentityServer/Services/Default/DefaultEventService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ protected virtual bool CanRaiseEvent(Event evt)
protected virtual async Task PrepareEventAsync(Event evt)
{
evt.TimeStamp = Clock.UtcNow.DateTime;
evt.ProcessId = Process.GetCurrentProcess().Id;
using var process = Process.GetCurrentProcess();
evt.ProcessId = process.Id;

if (Context.HttpContext?.TraceIdentifier != null)
{
Expand Down

0 comments on commit a503e05

Please sign in to comment.