diff options
| author | Qihang Gao <gaoqihang@loongson.cn> | 2026-06-25 12:07:51 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-07-17 12:45:38 +0300 |
| commit | fa461abf8a51b09c965d15c0d65be704b8b00a19 (patch) | |
| tree | c912d9c0b82e1f9acddc7b726bf858828b76d4b3 /BaseTools/Source/Python/AutoGen | |
| parent | c70637de12e0d5cee78ebf5a0b5d09cdb1db53c9 (diff) | |
| download | edk2-fa461abf8a51b09c965d15c0d65be704b8b00a19.tar.xz | |
MdePkg/UefiDevicePathLib: Fix the potential memory leak issue
The function DevPathToTextUsbWWID() allocates NewStr when the input
SerialNumber lacks a null terminator. However, this allocated memory
is never freed after use, resulting in a memory leak.
This patch adds the missing FreePool() for NewStr before the function
returns, ensuring that the allocated buffer is properly freed and
eliminating the potential leak.
Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen')
0 files changed, 0 insertions, 0 deletions
