FIX: fix memleak related to config clone

JIRA: none, found by self test

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ifbab17d543c60a767c0a53e1bca7dfe77bd8fbec
This commit is contained in:
salt.wei
2023-11-01 09:33:21 +08:00
committed by Lane.Wei
parent 92f2d8c37c
commit e7c380b364
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -308,6 +308,7 @@ ConfigOption* ConfigOptionDef::create_default_option() const
opt->keys_map = this->enum_keys_map;
return opt;
}
delete dft;
}
return this->default_value->clone();