Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19073f20 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "bootable: leak less memory"

parents 0d76cad8 1b03fc54
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -218,7 +218,8 @@ bool BootControl::Init() {
  }

  // Note that since there isn't a module unload function this memory is leaked.
  misc_device_ = strdup(device.c_str());
  // We use `device` below sometimes, so it's not moved out of here.
  misc_device_ = device;
  initialized_ = true;

  // Validate the loaded data, otherwise we will destroy it and re-initialize it