diff options
author | bubnikv <bubnikv@gmail.com> | 2019-05-03 19:01:39 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-05-03 19:01:39 +0300 |
commit | a61e8335365d711be4f1cbe08e02832426cef294 (patch) | |
tree | fe9c897eafe68af2bde086f2f21d4c027d6b0092 /xs | |
parent | 1c6006f657a1baac22a426565463e077707f4385 (diff) |
Implemented the "Support for support enforcers only" quick selection.
Reduced some memory leaks due to the ConfigDef::default_value pointer.
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/Config.xsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp index f9482bd3b..4d48a2c6f 100644 --- a/xs/xsp/Config.xsp +++ b/xs/xsp/Config.xsp @@ -223,8 +223,8 @@ print_config_def() (void)hv_stores( hv, "labels", newRV_noinc((SV*)av) ); } - if (optdef->default_value != NULL) - (void)hv_stores( hv, "default", ConfigOption_to_SV(*optdef->default_value, *optdef) ); + if (optdef->default_value) + (void)hv_stores( hv, "default", ConfigOption_to_SV(*optdef->default_value.get(), *optdef) ); (void)hv_store( options_hv, opt_key.c_str(), opt_key.length(), newRV_noinc((SV*)hv), 0 ); } |