summaryrefslogtreecommitdiff
path: root/lib/variables.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-08-31 16:01:03 -0400
committerRobbie Harwood <rharwood@redhat.com>2021-09-03 09:46:30 -0400
commitcff8db7d44c91c439cdbe5560dd6c43cae70ef6d (patch)
tree1aff17216a79df1689c3808d523538f2a93a13b0 /lib/variables.c
parentc5784078a9078c0c2171aa42b458f34b2b175c74 (diff)
downloadefi-boot-shim-cff8db7d44c91c439cdbe5560dd6c43cae70ef6d.tar.gz
efi-boot-shim-cff8db7d44c91c439cdbe5560dd6c43cae70ef6d.zip
fallback: free the right variable on the read_file() error path.
Heinrich correctly noticed that read_file()'s memory allocation failure error path tested the wrong variable, and thus would never catch the error condition. The *next* error, file->Read() failing, has the same incorrect variable usage in its FreePool() invocation. This fixes it to free the right variable as well. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions