]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg SmiHandlerProfile: Fix memory leak in DumpSmiChildContext
authorStar Zeng <star.zeng@intel.com>
Thu, 11 May 2017 09:34:34 +0000 (17:34 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 12 May 2017 05:07:11 +0000 (13:07 +0800)
commitfb1c81a1e5d299c0cb0783cbfe7e727202c2c471
tree6bb54ebeade7dcf377d35f466da717ab551c61bf
parent8bb61740d47b0788bc313f113cbad4a78b55101e
MdeModulePkg SmiHandlerProfile: Fix memory leak in DumpSmiChildContext

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=530

In DumpSmiChildContext() of SmiHandlerProfile.c and
SmiHandlerProfileInfo.c, the return buffer from
ConvertDevicePathToText() should be freed after used.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Application/SmiHandlerProfileInfo/SmiHandlerProfileInfo.c
MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c