@@ 51,7 51,7 @@ fn load_config_at(path: str) (config | conferr) = {
const sc = ini::scan(file);
defer ini::finish(&sc);
- let conf = config { ... };
+ let conf = newdefaultconfig();
let ok = false;
defer if (!ok) conf_finish(&conf);
@@ 74,8 74,10 @@ fn load_config_at(path: str) (config | conferr) = {
fn conf_remember(conf: *config, e: *ini::entry) (void | errors::invalid) = {
switch (e.1) {
case "persist" =>
+ free(conf.rpersist);
conf.rpersist = remember::parse_options(e.2)?;
case "disclose" =>
+ free(conf.rdisclose);
conf.rdisclose = remember::parse_options(e.2)?;
case => void;
};