ISA Bus code scrub.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8538 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -522,8 +522,8 @@ IsaBusControllerDriverStop (
|
||||
);
|
||||
|
||||
if (!EFI_ERROR (Status)) {
|
||||
gBS->FreePool (IsaIoDevice->DevicePath);
|
||||
gBS->FreePool (IsaIoDevice);
|
||||
FreePool (IsaIoDevice->DevicePath);
|
||||
FreePool (IsaIoDevice);
|
||||
} else {
|
||||
//
|
||||
// Re-open PCI IO Protocol on behalf of the child device
|
||||
@@ -660,10 +660,10 @@ Done:
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (IsaIoDevice->DevicePath != NULL) {
|
||||
gBS->FreePool (IsaIoDevice->DevicePath);
|
||||
FreePool (IsaIoDevice->DevicePath);
|
||||
}
|
||||
|
||||
gBS->FreePool (IsaIoDevice);
|
||||
FreePool (IsaIoDevice);
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
Reference in New Issue
Block a user