tools: mkeficapsule: resource leak in read_bin_file()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Jul 2025 06:31:23 +0000 (08:31 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 8 Aug 2025 06:44:52 +0000 (08:44 +0200)
commite16646c0ade9a62ef118978e27adbb259eb8a360
tree33ba0fda524f93859ef14ff7fcbdc25b4f39e336
parent123cd77122a13288e1552b5d9b7c22a6f19e2e02
tools: mkeficapsule: resource leak in read_bin_file()

Free the allocated buffer in case of an error.

Fixes: 9e63786e2b4b ("tools: mkeficapsule: rework the code a little bit")
Addresses-Coverity-ID: 345917 Resource leak
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
tools/mkeficapsule.c