]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/Udp6Dxe/Udp6Main.c
NetworkPkg: Fix a memory leak issue in UDP6 driver
authorWang Fan <fan.wang@intel.com>
Wed, 3 Jan 2018 09:35:53 +0000 (17:35 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 11 Jan 2018 09:08:31 +0000 (17:08 +0800)
commit24ed9cfd23b005511fb1b4007b7522927e86430a
tree5792eb20160b7d1eb44cb9088c3f2c48a6246d54
parent2c4a45b3619303112d46df0d5a606842ad32d011
NetworkPkg: Fix a memory leak issue in UDP6 driver

In UDP6Dxe Udp6Groups(), the code return directly without free the
buffer allocated for McastIp when JoinFlag is TRUE. It is a memory
leak issue that needs to be fixed. This patch is to fix this issue.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@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>
NetworkPkg/Udp6Dxe/Udp6Main.c