mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[c++options] Fix leak.
This commit is contained in:
@@ -1261,9 +1261,7 @@ const char*
|
|||||||
gnc_option_db_lookup_string_value(GncOptionDB* odb, const char* section, const char* name)
|
gnc_option_db_lookup_string_value(GncOptionDB* odb, const char* section, const char* name)
|
||||||
{
|
{
|
||||||
auto value{odb->lookup_string_option(section, name)};
|
auto value{odb->lookup_string_option(section, name)};
|
||||||
if (value.empty())
|
return value.empty() ? nullptr : strdup(value.c_str());
|
||||||
return nullptr;
|
|
||||||
return strdup(value.c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user