]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
MdeModulePkg/CapsuleApp: Fix memory leak issue.
authorChen A Chen <chen.a.chen@intel.com>
Mon, 11 Feb 2019 05:42:19 +0000 (13:42 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 13 Feb 2019 08:25:47 +0000 (16:25 +0800)
commit325ad6226099d276564a65cdef012de0ff45ba8e
treea34042aa630244bd95e2526f787eca9492b1539f
parentda06a2a2fa1e100392d9782d99ad0a71f4605b1f
MdeModulePkg/CapsuleApp: Fix memory leak issue.

This issue is caused by FileInfoBuffer variable. This is a pointer array
and each elements also pointer to a memory buffer that is allocated and
returned by AllocateCopyPool function.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Zhang Chao B <chao.b.zhang@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
MdeModulePkg/Application/CapsuleApp/CapsuleDump.c