Svace: Fixed MEMORY_LEAK.EX warning.

This commit is contained in:
ocbuild 2022-01-13 16:40:41 +03:00
parent a7803f3888
commit 74caaad028

View File

@ -864,6 +864,10 @@ SerialControllerDriverStart (
// If the SerialIo instance is already created, NULL as RemainingDevicePath is treated
// as to create the same SerialIo instance.
//
if (SerialDevices != NULL) {
FreePool (SerialDevices);
}
return EFI_SUCCESS;
} else {
//