diff options
| author | Peter Jones <pjones@redhat.com> | 2021-08-31 16:01:03 -0400 |
|---|---|---|
| committer | Robbie Harwood <rharwood@redhat.com> | 2021-09-03 09:46:30 -0400 |
| commit | cff8db7d44c91c439cdbe5560dd6c43cae70ef6d (patch) | |
| tree | 1aff17216a79df1689c3808d523538f2a93a13b0 /Cryptlib/Hash | |
| parent | c5784078a9078c0c2171aa42b458f34b2b175c74 (diff) | |
| download | efi-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 'Cryptlib/Hash')
0 files changed, 0 insertions, 0 deletions
