mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Add check before free DevicePath (TCP child sock will have no device path installed)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9617 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
41335d2244
commit
29056ed2de
@ -227,14 +227,16 @@ Tcp4FlushPcb (
|
||||
RemoveEntryList (&Tcb->List);
|
||||
|
||||
//
|
||||
// Uninstall the device path protocl.
|
||||
// Uninstall the device path protocol.
|
||||
//
|
||||
gBS->UninstallProtocolInterface (
|
||||
Sock->SockHandle,
|
||||
&gEfiDevicePathProtocolGuid,
|
||||
Sock->DevicePath
|
||||
);
|
||||
FreePool (Sock->DevicePath);
|
||||
if (Sock->DevicePath != NULL) {
|
||||
gBS->UninstallProtocolInterface (
|
||||
Sock->SockHandle,
|
||||
&gEfiDevicePathProtocolGuid,
|
||||
Sock->DevicePath
|
||||
);
|
||||
FreePool (Sock->DevicePath);
|
||||
}
|
||||
|
||||
TcpSetVariableData (TcpProto->TcpService);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user