audk/MdeModulePkg/Universal/Network/Dhcp4Dxe
Wang Fan 479a3b6053 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>
2018-01-11 08:56:10 +08:00
..
ComponentName.c
Dhcp4Driver.c MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
Dhcp4Driver.h MdeModulePkg: Fix typos in comments and variables 2016-07-11 10:29:48 +08:00
Dhcp4Dxe.inf MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:34:06 +00:00
Dhcp4Dxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Dhcp4DxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Dhcp4Impl.c MdeModulePkg: Add error handling when IP address is Class E 2018-01-03 13:53:13 +08:00
Dhcp4Impl.h MdeModulePkg/Dhcp4Dxe: Free NET_BUF data after sent out to avoid memory leak 2018-01-11 08:56:10 +08:00
Dhcp4Io.c MdeModulePkg/Dhcp4Dxe: Free NET_BUF data after sent out to avoid memory leak 2018-01-11 08:56:10 +08:00
Dhcp4Io.h
Dhcp4Option.c MedmodulePkg: Refine codes related to Dhcpv4 and Dhcpv6 configuration. 2016-06-23 09:39:23 +08:00
Dhcp4Option.h MedmodulePkg: Refine codes related to Dhcpv4 and Dhcpv6 configuration. 2016-06-23 09:39:23 +08:00