diff options
| author | Laszlo Ersek <lersek@redhat.com> | 2016-02-24 23:00:04 +0300 |
|---|---|---|
| committer | Laszlo Ersek <lersek@redhat.com> | 2016-02-25 13:04:28 +0300 |
| commit | 1246dde58e8a84644ad46679b8767f8643818e31 (patch) | |
| tree | 36fe382b3ae0d3f10a7cbcff0a244c17057b980e /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | 211372d63a82861e52250c0f7a5ee78d9dc417ae (diff) | |
| download | edk2-1246dde58e8a84644ad46679b8767f8643818e31.tar.xz | |
CryptoPkg: RuntimeCryptLib: support free(NULL)
The ISO C standard says about free(),
If ptr is a null pointer, no action occurs.
This is not true of the RuntimeFreeMem() internal function. Therefore we
must not forward the argument of free() to RuntimeFreeMem() without
checking.
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Qin Long <qin.long@intel.com>
Cc: Ting Ye <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Qin Long <qin.long@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions
