diff options
author | Hao Wu <hao.a.wu@intel.com> | 2017-03-10 10:22:30 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-03-13 09:15:52 +0800 |
commit | dd4eaf1573d7c6b01bb4de2b5055c5ccc30730c8 (patch) | |
tree | 9c582c6f220c75b1dd4c187f9479a5709f5dcba0 /MdeModulePkg/Library/DxeCapsuleLibFmp | |
parent | 96b17e00b9f180fad1ab7983475174c8c933d576 (diff) | |
download | edk2-dd4eaf1573d7c6b01bb4de2b5055c5ccc30730c8.zip edk2-dd4eaf1573d7c6b01bb4de2b5055c5ccc30730c8.tar.gz edk2-dd4eaf1573d7c6b01bb4de2b5055c5ccc30730c8.tar.bz2 |
MdeModulePkg/CapsuleLib: Free the buffer returned by GetVariable2 API
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/DxeCapsuleLibFmp')
-rw-r--r-- | MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLib.c b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLib.c index fc0f869..3fed8e06 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLib.c @@ -342,6 +342,10 @@ InitCapsuleLastVariable ( 0,
NULL
);
+ } else {
+ if (CapsuleResult != NULL) {
+ FreePool (CapsuleResult);
+ }
}
}
|