mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
RedfishDiscoverDxe: release resources when refreshing information data
It is required to free previously allocated strings stored in DiscoveredInstance->Information structure. Cc: Nickle Wang <nicklew@nvidia.com> Cc: Igor Kulchytskyy <igork@ami.com> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com> Reviewed-by: Abner Chang <abner.chang@amd.com>
This commit is contained in:
parent
f8de39afab
commit
139887a989
@ -961,6 +961,8 @@ AddAndSignalNewRedfishService (
|
|||||||
FreePool ((VOID *)DiscoveredList);
|
FreePool ((VOID *)DiscoveredList);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
FreeInformationData (&DiscoveredInstance->Information);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((DEBUG_MANAGEABILITY, "*** Redfish Service Information ***\n"));
|
DEBUG ((DEBUG_MANAGEABILITY, "*** Redfish Service Information ***\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user