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
Dhcp4Driver.h
Dhcp4Dxe.inf
Dhcp4Dxe.uni
Dhcp4DxeExtra.uni
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
Dhcp4Option.h