parser: copy strings?

Hal Murray hmurray at megapathdsl.net
Sun Mar 10 10:11:21 UTC 2019


Should strings be copied over?

                case T_Cert:
                    my_node->ctl.nts_cfg.cert = option->value.s;
                    break;

                case T_Cert:
                        ntsconfig.cert = estrdup(nts->value.s);
                        break;

Should we free up existing ones?
  That is probably a bug/quirk in the config file, but I could
  imagine somebody swapping the order of two lines rather
  than commenting one out.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list