]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/BdsLib: Prevent memory leak whith TFTP
authorOlivier Martin <olivier.martin@arm.com>
Tue, 1 Jul 2014 09:27:19 +0000 (09:27 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Jul 2014 09:27:19 +0000 (09:27 +0000)
commitedc93a319184294dfa2f1764baceb02f49ccdcc5
tree1904eb4615771127aeaab60dbb782314f642cf7f
parenta6217114e35fd10215513d8b026bd4e0c3770814
ArmPkg/BdsLib: Prevent memory leak whith TFTP

In some case, the size of the downloaded TFTP image cannot be known.
An arbitrary larger buffer is allocated to receive the image.
We need to make sure when we free the buffer we free the size
of the allocated buffer and not the size of the actual image.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15609 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Library/BdsLib/BdsFilePath.c