Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix format and leaks #52

Merged
merged 11 commits into from
Oct 31, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ HandleResource (
// Check and see if this is target resource that we want to handle.
// Some resource is handled by other provider so we have to make sure this first.
//
DEBUG ((REDFISH_DEBUG_TRACE, "%s Identify for %s\n", __func__, Uri));
DEBUG ((REDFISH_DEBUG_TRACE, "%a Identify for %s\n", __func__, Uri));
ConfigLang = RedfishGetConfigLanguage (Uri);
if (ConfigLang == NULL) {
Status = EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Private->InformationExchange);
Expand Down
2 changes: 2 additions & 0 deletions RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ RedfishExternalResourceResourceFeatureCallback (
Private->Uri = RedfishGetUri (ResourceUri);
if (Private->Uri == NULL) {
ASSERT (FALSE);
FreePool (ResourceUri);
return EFI_OUT_OF_RESOURCES;
}

Expand All @@ -727,6 +728,7 @@ RedfishExternalResourceResourceFeatureCallback (
}

FreePool (Private->Uri);
FreePool (ResourceUri);
return Status;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern EFI_GUID gHiiToRedfishBiosFormsetGuid;
#define ID_STRING_MAX 15
#define ID_STRING_MAX_WITH_TERMINATOR 16

#pragma pack()
#pragma pack(1)

//
// Definiton of HII_TO_REDFISH_BIOS_VARSTORE_DATA
Expand All @@ -44,4 +44,5 @@ typedef struct {
UINT8 Reserved;
} HII_TO_REDFISH_BIOS_EFI_VARSTORE_DATA;

#pragma pack()
#endif
Loading