Skip to content

Commit

Permalink
[MSAFD] WSPConnect: Remove unnecessary NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
TAN-Gaming committed Jan 14, 2024
1 parent a38008e commit fd8ee1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dll/win32/msafd/misc/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -2070,8 +2070,7 @@ WSPConnect(SOCKET Handle,
/* This will be freed by the APC */
// HeapFree(GlobalHeap, 0, APCContext);
}
if (ConnectInfo)
HeapFree(GlobalHeap, 0, ConnectInfo);
HeapFree(GlobalHeap, 0, ConnectInfo);

Socket->SharedData->SocketLastError = TranslateNtStatusError(Status);
if (Status != STATUS_SUCCESS)
Expand Down

0 comments on commit fd8ee1f

Please sign in to comment.