Update for code security.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7255 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2009-01-13 08:29:55 +00:00
parent f8e01ca87b
commit 81464cf106
4 changed files with 23 additions and 3 deletions

View File

@@ -596,10 +596,10 @@ UsbMassInitMultiLun (
return EFI_SUCCESS;
ON_ERROR:
if (UsbMass->DevicePath != NULL) {
FreePool (UsbMass->DevicePath);
}
if (UsbMass != NULL) {
if (UsbMass->DevicePath != NULL) {
FreePool (UsbMass->DevicePath);
}
FreePool (UsbMass);
}
if (UsbIo != NULL) {