mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-05 22:12:40 +00:00
cmd: avb: free partition buffer upon verify completion
Doing the same as the unittests for libavb [1]. Allows to run 'avb verify' multiple times which can be useful after a failure to be able to re-flash the partition and try again. [1] https://android.googlesource.com/platform/external/avb/+/refs/tags/android-9.0.0_r37/test/avb_slot_verify_unittest.cc#156 Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
This commit is contained in:
parent
cf2d07f004
commit
b09e1b6149
1 changed files with 3 additions and 0 deletions
|
@ -316,6 +316,9 @@ int do_avb_verify_part(struct cmd_tbl *cmdtp, int flag,
|
|||
printf("Unknown error occurred\n");
|
||||
}
|
||||
|
||||
if (out_data)
|
||||
avb_slot_verify_data_free(out_data);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue