diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-03-26 05:56:31 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-03-27 06:32:27 +0100 |
commit | d0826507e2d24974cb99bfa8cac39d7684107994 (patch) | |
tree | dc581ce70244be76e2fa75b946c59545542ddd29 /lib | |
parent | 2b9b9cdd5f9ae1cbc786ba3c2255a51b3ea4a636 (diff) | |
download | u-boot-d0826507e2d24974cb99bfa8cac39d7684107994.tar.gz |
efi_selftest: avoid double free in dp utilities test
Avoid duplicate FreePool() in unit test for the device patch utilities
protocol.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_selftest/efi_selftest_devicepath_util.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/efi_selftest/efi_selftest_devicepath_util.c b/lib/efi_selftest/efi_selftest_devicepath_util.c index 5fef5cfccd..c846e057d3 100644 --- a/lib/efi_selftest/efi_selftest_devicepath_util.c +++ b/lib/efi_selftest/efi_selftest_devicepath_util.c @@ -256,11 +256,6 @@ static int execute(void) efi_st_error("GetNextDevicePathInstance did not signal end\n"); return EFI_ST_FAILURE; } - ret = boottime->free_pool(dp2); - if (ret != EFI_ST_SUCCESS) { - efi_st_error("FreePool failed\n"); - return EFI_ST_FAILURE; - } /* Clean up */ ret = boottime->free_pool(dp2); |