commit | b12df3a32557eac05a5739dcd29ebb49f8ec758b | [log] [tgz] |
---|---|---|
author | Gary Bisson <gary.bisson@boundarydevices.com> | Mon May 11 12:11:53 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue May 19 14:01:47 2020 -0400 |
tree | 45efc945769f2dc390588d8adfa917540d678f2a | |
parent | da56d5761a25079d131f3e8252d5ac5914851691 [diff] [blame] |
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>
diff --git a/cmd/avb.c b/cmd/avb.c index 398ad3b..88172a9 100644 --- a/cmd/avb.c +++ b/cmd/avb.c
@@ -316,6 +316,9 @@ printf("Unknown error occurred\n"); } + if (out_data) + avb_slot_verify_data_free(out_data); + return res; }