mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 13:14:19 +08:00
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>
This commit is contained in:
parent
2b9b9cdd5f
commit
d0826507e2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user