Skip to content

Commit

Permalink
RedfishDiscoverDxe: release resources when refreshing information data
Browse files Browse the repository at this point in the history
It is required to free previously allocated strings stored in
DiscoveredInstance->Information structure.

Cc: Nickle Wang <[email protected]>
Cc: Igor Kulchytskyy <[email protected]>
Signed-off-by: Mike Maslenkin <[email protected]>
Reviewed-by: Abner Chang <[email protected]>
  • Loading branch information
ghbaccount authored and mergify[bot] committed Dec 27, 2023
1 parent f8de39a commit 139887a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,8 @@ AddAndSignalNewRedfishService (
FreePool ((VOID *)DiscoveredList);
return EFI_OUT_OF_RESOURCES;
}
} else {
FreeInformationData (&DiscoveredInstance->Information);
}

DEBUG ((DEBUG_MANAGEABILITY, "*** Redfish Service Information ***\n"));
Expand Down

0 comments on commit 139887a

Please sign in to comment.