We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b130a6 + 3739574 commit 5026bd6Copy full SHA for 5026bd6
boot_control/libboot_control.cpp
@@ -218,7 +218,8 @@ bool BootControl::Init() {
218
}
219
220
// Note that since there isn't a module unload function this memory is leaked.
221
- misc_device_ = strdup(device.c_str());
+ // We use `device` below sometimes, so it's not moved out of here.
222
+ misc_device_ = device;
223
initialized_ = true;
224
225
// Validate the loaded data, otherwise we will destroy it and re-initialize it
0 commit comments