Remove goto statements

Use of goto is highly discouraged, so remove it.

Use unique_ptr where possible to ensure that memory is freed properly

Bug: 234349374
Test: manual, use bootctl to
    get current slot
    set active slot _a/_b, then dump and compare gpt tables
    set successful boot _a/_b, then dump and compare gpt tables
Change-Id: I86b30d58efda9552057cf92499b329eeef530ef8
1 file changed
tree: 27b32ab4c020f4ac12955c68392be95400e0dd95
  1. Android.bp
  2. boot_control.cpp
  3. METADATA
  4. NOTICE