mirror of https://github.com/acidanthera/audk.git
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);
|
RemoveEntryList (&Tcb->List);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Uninstall the device path protocl.
|
// Uninstall the device path protocol.
|
||||||
//
|
//
|
||||||
gBS->UninstallProtocolInterface (
|
if (Sock->DevicePath != NULL) {
|
||||||
Sock->SockHandle,
|
gBS->UninstallProtocolInterface (
|
||||||
&gEfiDevicePathProtocolGuid,
|
Sock->SockHandle,
|
||||||
Sock->DevicePath
|
&gEfiDevicePathProtocolGuid,
|
||||||
);
|
Sock->DevicePath
|
||||||
FreePool (Sock->DevicePath);
|
);
|
||||||
|
FreePool (Sock->DevicePath);
|
||||||
|
}
|
||||||
|
|
||||||
TcpSetVariableData (TcpProto->TcpService);
|
TcpSetVariableData (TcpProto->TcpService);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue