diff options
| author | Qihang Gao <gaoqihang@loongson.cn> | 2026-09-18 10:49:47 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-25 15:42:52 +0300 |
| commit | ecee358dea7be4ba4730067e45951938d10ae723 (patch) | |
| tree | eeba449cf77c03c431f4d9bb64254595eb2052a2 /MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa | |
| parent | 12478683adf32afcb48925324d4cee84f2e006d4 (diff) | |
| download | edk2-ecee358dea7be4ba4730067e45951938d10ae723.tar.xz | |
ShellPkg/UefiShellDebug1CommandsLib: Fix memory leaks in help display
HiiGetString() returns a dynamically allocated string that must be
released with FreePool(). In MainCommandDisplayHelp() and
HMainCommandDisplayHelp(), the returned InfoString is printed but
never freed, leaking memory each time the help screen is displayed.
Release InfoString after ShellPrintEx() in both functions.
No functional change intended.
Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
Diffstat (limited to 'MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa')
0 files changed, 0 insertions, 0 deletions
