summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2026-10-17 00:45:07 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-22 00:53:42 +0300
commit52fa6fe8996f4b11881757b9300ee4ec584432ba (patch)
treed8a1d3c5fed7de0e59b1b0f939ccc122c7203d6a /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
parentbf25b6e4017b120decd2bb97384a8f319ba4303e (diff)
downloadedk2-52fa6fe8996f4b11881757b9300ee4ec584432ba.tar.xz
MdeModulePkg/UsbBusDxe: Free BOS buffer on read failure
UsbGetDevBosDesc() allocates a buffer for the initial BOS descriptor request. If that request fails, the success-only cleanup is skipped and the function returns without freeing the buffer. Repeated enumeration attempts can leak one allocation per failure. Free the initial buffer before returning the transfer error. The leaking retrieval helper was introduced by PR #12714: https://github.com/tianocore/edk2/pull/12714 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c')
0 files changed, 0 insertions, 0 deletions