summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
index 0f1c056175..0a56a68bb1 100644
--- a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
+++ b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
@@ -961,6 +961,8 @@ AddAndSignalNewRedfishService (
FreePool ((VOID *)DiscoveredList);
return EFI_OUT_OF_RESOURCES;
}
+ } else {
+ FreeInformationData (&DiscoveredInstance->Information);
}
DEBUG ((DEBUG_MANAGEABILITY, "*** Redfish Service Information ***\n"));