]> jfr.im git - solanum.git/commit
s_conf: Don't leak strings when loading default conf
authorKeith Buck <redacted>
Mon, 3 Mar 2014 03:58:40 +0000 (03:58 +0000)
committerKeith Buck <redacted>
Mon, 3 Mar 2014 03:58:40 +0000 (03:58 +0000)
commit010c4fbdc56bb293803797b1a8b3b416709a54a2
tree246a16f7d055fdae819dabb887eefc4d5b89e8d4
parent9e26f0008b44e609918335986e7f0a00c27f3433
s_conf: Don't leak strings when loading default conf

This change prevents conf strings from being leaked when resetting the
conf to default prior to a rehash. Additionally, some default strings
are now rb_strdup'd into the ConfigFileEntry structure after loading the
conf so that they aren't allocated and then immediately freed by the
conf loading process.
src/s_conf.c