mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-20 04:04:27 +02:00
NetworkPkg/HttpDxe: Fix the memory leak issue in HttpRequest().
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> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
parent
0d07e6fb53
commit
c0a0a5a5c7
@ -472,6 +472,8 @@ EfiHttpRequest (
|
|||||||
|
|
||||||
FreePool (HostName);
|
FreePool (HostName);
|
||||||
|
|
||||||
|
HttpUrlFreeParser (UrlParser);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Queue the HTTP token and return.
|
// Queue the HTTP token and return.
|
||||||
//
|
//
|
||||||
@ -657,6 +659,10 @@ EfiHttpRequest (
|
|||||||
FreePool (HostName);
|
FreePool (HostName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (UrlParser != NULL) {
|
||||||
|
HttpUrlFreeParser (UrlParser);
|
||||||
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
|
||||||
Error5:
|
Error5:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user