mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +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
|
||||
// as to create the same SerialIo instance.
|
||||
//
|
||||
if (SerialDevices != NULL) {
|
||||
FreePool (SerialDevices);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
} else {
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user