mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
Svace: Fixed MEMORY_LEAK.EX warning.
This commit is contained in:
parent
a7803f3888
commit
74caaad028
@ -864,6 +864,10 @@ SerialControllerDriverStart (
|
|||||||
// If the SerialIo instance is already created, NULL as RemainingDevicePath is treated
|
// If the SerialIo instance is already created, NULL as RemainingDevicePath is treated
|
||||||
// as to create the same SerialIo instance.
|
// as to create the same SerialIo instance.
|
||||||
//
|
//
|
||||||
|
if (SerialDevices != NULL) {
|
||||||
|
FreePool (SerialDevices);
|
||||||
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user