~firmware-testing-team/fwts/master

Viewing all changes in revision 4424.

  • Committer: Alex Hung
  • Author(s): Colin Ian King
  • Date: 2019-11-07 16:40:04 UTC
  • Revision ID: git-v1:ae1ba9fafdc76a7d796d95ba6efe1fe757765903
iASL: fix memory leak of LocalityBuffer on error return path

The error return path is not free'ing previously allocated
resource LocalityBuffer and hence there is a memory leak. Fix this
by free'ing it before returning.

Fixes: c22c0b1df98c ("Data table compiler: Add error messages for SLIT locality buffers")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Alex Hung <alex.hung@canonical.com>
Acked-by: Ivan Hu <ivan.hu@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: