mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-20 04:04:27 +02:00
NetworkPkg/UefiPxeBcDxe: Bugfix for pxe driver
Ensure the poniter is not null before free it Signed-off-by: Bing Luo <robin.luo@jaguarmicro.com>
This commit is contained in:
parent
a2263cb201
commit
070eadb550
@ -246,7 +246,9 @@ PxeBcDestroyIp4Children (
|
|||||||
&Private->PxeBc,
|
&Private->PxeBc,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
FreePool (Private->Ip4Nic->DevicePath);
|
if (Private->Ip4Nic->DevicePath != NULL) {
|
||||||
|
FreePool (Private->Ip4Nic->DevicePath);
|
||||||
|
}
|
||||||
|
|
||||||
if (Private->Snp != NULL) {
|
if (Private->Snp != NULL) {
|
||||||
//
|
//
|
||||||
@ -407,7 +409,9 @@ PxeBcDestroyIp6Children (
|
|||||||
&Private->PxeBc,
|
&Private->PxeBc,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
FreePool (Private->Ip6Nic->DevicePath);
|
if (Private->Ip6Nic->DevicePath != NULL) {
|
||||||
|
FreePool (Private->Ip6Nic->DevicePath);
|
||||||
|
}
|
||||||
|
|
||||||
if (Private->Snp != NULL) {
|
if (Private->Snp != NULL) {
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user