diff options
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 2887d3b5d..1aef567f2 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1847,6 +1847,10 @@ int FastBootTool::Main(int argc, char* argv[]) { int status = fb_execute_queue() ? EXIT_FAILURE : EXIT_SUCCESS; fprintf(stderr, "Finished. Total time: %.3fs\n", (now() - start)); + + if (Transport* old_transport = fb.set_transport(nullptr)) { + delete old_transport; + } return status; } |