Cc: Wang Fan <fan.wang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Wang Fan <fan.wang@intel.com>
if (!IsProxyOffer) {\r
OfferType = IsDnsOffer ? HttpOfferTypeDhcpDns : HttpOfferTypeDhcpOnly;\r
} else {\r
+ if (Cache4->UriParser != NULL) {\r
+ FreePool (Cache4->UriParser);\r
+ }\r
return EFI_DEVICE_ERROR;\r
}\r
}\r
UINTN Index;\r
EFI_STATUS Status;\r
CHAR8 *Uri;\r
- \r
\r
+ Uri = NULL;\r
+ \r
if (Private == NULL || FilePath == NULL) {\r
return EFI_INVALID_PARAMETER;\r
}\r
//\r
Status = HttpBootStop (Private);\r
if (EFI_ERROR (Status)) {\r
+ if (Uri != NULL) {\r
+ FreePool (Uri);\r
+ }\r
return Status;\r
}\r
} else {\r