summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Library
diff options
context:
space:
mode:
authorWang Fan <fan.wang@intel.com>2018-01-10 15:24:53 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2018-01-11 08:56:10 +0800
commit479a3b6053bb4c508d7397c65f482e0a8f3c9719 (patch)
tree6515365ed083413294f53d9b4075846e6f9209eb /UefiCpuPkg/Library
parent427b2f41a6e21140fde1ccd900ed228de672ce33 (diff)
downloadedk2-479a3b6053bb4c508d7397c65f482e0a8f3c9719.tar.gz
edk2-479a3b6053bb4c508d7397c65f482e0a8f3c9719.tar.bz2
edk2-479a3b6053bb4c508d7397c65f482e0a8f3c9719.zip
MdeModulePkg/Dhcp4Dxe: Free NET_BUF data after sent out to avoid memory leak
* When build a DHCP message in function DhcpSendMessage() or DhcpRetransmit(), a new NET_BUF is created by the library of NetbufFromExt, but it's not freed after it is sent out. This patch is to fix this memory leak issue. V2: * Since packet has already been referred by DhcpSb->LastPacket, and will be freed when sending another packet or clean up, there is no need to add an extra free function in NetbufFromExt. Cc: Jiaxin Wu <jiaxin.wu@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: Wang Fan <fan.wang@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'UefiCpuPkg/Library')
0 files changed, 0 insertions, 0 deletions