]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Freed packet buffer when error occurs to avoid memory leak.
authorWang Fan <fan.wang@intel.com>
Mon, 8 Jan 2018 05:18:26 +0000 (13:18 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Wed, 10 Jan 2018 00:30:24 +0000 (08:30 +0800)
commit36c19ee6c7c4455f5de2817052444d1a0dad0e3d
treeacbb4269fe22bc6a1970e2c57b5f9c040e75d083
parent39b0867d836292be0ffaffd2cc1edb7049c9fddd
MdeModulePkg: Freed packet buffer when error occurs to avoid memory leak.

* In function Mtftp4WrqSendBlock(), when packet is not needed, function
  returns EFI_ABORTED but not freed the packet buffer. It results some
  memory leak and this patch is to fix this issue.

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: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c