]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_selftest: avoid double free in dp utilities test
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 26 Mar 2019 04:56:31 +0000 (05:56 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 27 Mar 2019 05:32:27 +0000 (06:32 +0100)
Avoid duplicate FreePool() in unit test for the device patch utilities
protocol.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_devicepath_util.c

index 5fef5cfccd78f94ce114001b7e1cfbdc8d67856c..c846e057d3532bf1f505aef07366244ea316173e 100644 (file)
@@ -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);