return EFI_SUCCESS;\r
\r
ON_ERROR:\r
- if (UsbMass->DevicePath != NULL) {\r
- FreePool (UsbMass->DevicePath);\r
- }\r
if (UsbMass != NULL) {\r
+ if (UsbMass->DevicePath != NULL) {\r
+ FreePool (UsbMass->DevicePath);\r
+ }\r
FreePool (UsbMass);\r
}\r
if (UsbIo != NULL) {\r