Skip to content

Commit

Permalink
potential memory leak without setting Status (#4702)
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS authored Dec 10, 2024
1 parent 1c3448c commit 21e5b41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/datapath_raw_xdp_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,11 @@ CxPlatDpRawInterfaceInitialize(
if (!SetFileCompletionNotificationModes(
(HANDLE)Queue->RxXsk,
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS | FILE_SKIP_SET_EVENT_ON_HANDLE)) {
Status = QUIC_STATUS_INTERNAL_ERROR;
QuicTraceEvent(
LibraryErrorStatus,
"[ lib] ERROR, %u, %s.",
Status,
GetLastError(),
"SetFileCompletionNotificationModes");
goto Error;
}
Expand Down Expand Up @@ -700,10 +701,11 @@ CxPlatDpRawInterfaceInitialize(
if (!SetFileCompletionNotificationModes(
(HANDLE)Queue->TxXsk,
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS | FILE_SKIP_SET_EVENT_ON_HANDLE)) {
Status = QUIC_STATUS_INTERNAL_ERROR;
QuicTraceEvent(
LibraryErrorStatus,
"[ lib] ERROR, %u, %s.",
Status,
GetLastError(),
"SetFileCompletionNotificationModes");
goto Error;
}
Expand Down

0 comments on commit 21e5b41

Please sign in to comment.