diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c index 32dca964a..9b336d3de 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c @@ -718,6 +718,7 @@ RedfishExternalResourceResourceFeatureCallback ( Private->Uri = RedfishGetUri (ResourceUri); if (Private->Uri == NULL) { ASSERT (FALSE); + FreePool (ResourceUri); return EFI_OUT_OF_RESOURCES; } @@ -727,6 +728,7 @@ RedfishExternalResourceResourceFeatureCallback ( } FreePool (Private->Uri); + FreePool (ResourceUri); return Status; }