mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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> |
||
|---|---|---|
| .. | ||
| Include | ||
| Library | ||
| Test | ||
| MdeLibs.dsc.inc | ||
| MdePkg.ci.yaml | ||
| MdePkg.dec | ||
| MdePkg.dsc | ||
| MdePkg.uni | ||
| MdePkgExtra.uni | ||