]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: fix two instances of FreePool () on NULL value
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 27 Mar 2015 17:27:24 +0000 (17:27 +0000)
committerlersek <lersek@Edk2>
Fri, 27 Mar 2015 17:27:24 +0000 (17:27 +0000)
commit3a2b37f0d4d489322499110b44b6f74bbe7329d6
tree83af38bd2095ced628e6320bccad541131c8f000
parent55f5af1871d07d62def7bafa20b4761cc8b66e7d
ArmPlatformPkg: fix two instances of FreePool () on NULL value

This is a copy/paste of the exact same code in both cases: Buffer
should only be freed on the success path, otherwise it will be
NULL

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17078 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/Bds/Bds.c
ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c