Skip to content

RedfishPkg: fix memory leaks#12483

Open
ghbaccount wants to merge 4 commits intotianocore:masterfrom
ghbaccount:RedfishPkg-fix-memory-issues
Open

RedfishPkg: fix memory leaks#12483
ghbaccount wants to merge 4 commits intotianocore:masterfrom
ghbaccount:RedfishPkg-fix-memory-issues

Conversation

@ghbaccount
Copy link
Copy Markdown
Contributor

Description

This PR provides fixes for some findings in RedfishPkg.
In general it refines and fixes trivial memory leaks on an error path.

How This Was Tested

Smoke test.

Integration Instructions

N/A

This patch fixes use-after-free issue caused by copy-paste.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This patch fixes unbalanced RaiseTPL/RestoreTPL on error path
and removes unnecessary variable initialization.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
@ghbaccount ghbaccount force-pushed the RedfishPkg-fix-memory-issues branch from add66ef to 60116f1 Compare April 20, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant