summaryrefslogtreecommitdiffstats
path: root/Vlv2DeviceRefCodePkg
diff options
context:
space:
mode:
authorLong Qin <qin.long@intel.com>2017-10-31 15:50:30 +0800
committerLong Qin <qin.long@intel.com>2017-11-06 14:51:39 +0800
commit6fe575d052e36b243657a5885b5457decac41f03 (patch)
treef7af9f3771a44070415b486671facb2188c67f07 /Vlv2DeviceRefCodePkg
parentcf8197a39d07179027455421a182598bd6989999 (diff)
downloadedk2-6fe575d052e36b243657a5885b5457decac41f03.tar.gz
CryptoPkg/BaseCryptLib: Fix mismatched memory allocation/free
The malloc/free (instead of AllocatePool/FreePool) were used directly in some wrapper implementations, which was designed to leverage the light-weight memory management routines at Runtime phase. The malloc/free and AllocatePool/FreePool usages are required to be matched, after extra memory size info header was introduced in malloc wrapper. This patch corrects two memory allocation cases, which requires the caller to free the buffer with FreePool() outside the function call. And some comments were also added to clarify the correct memory release functions if it's the caller's responsibility to free the memory buffer. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Ting Ye <ting.ye@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long <qin.long@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Diffstat (limited to 'Vlv2DeviceRefCodePkg')
0 files changed, 0 insertions, 0 deletions