… | |
… | |
185 | if (rsa_key) |
185 | if (rsa_key) |
186 | RSA_free (rsa_key); |
186 | RSA_free (rsa_key); |
187 | |
187 | |
188 | rsa_key = 0; |
188 | rsa_key = 0; |
189 | |
189 | |
190 | free (pidfilename); pidfilename = 0; |
190 | free (pidfilename); pidfilename = 0; |
191 | free (ifname); ifname = 0; |
191 | free (ifname); ifname = 0; |
192 | #if ENABLE_HTTP_PROXY |
192 | #if ENABLE_HTTP_PROXY |
193 | free (proxy_host); proxy_host = 0; |
193 | free (proxy_host); proxy_host = 0; |
194 | free (proxy_auth); proxy_auth = 0; |
194 | free (proxy_auth); proxy_auth = 0; |
195 | #endif |
195 | #endif |
196 | #if ENABLE_DNS |
196 | #if ENABLE_DNS |
197 | free (dns_forw_host); dns_forw_host = 0; |
197 | free (dns_forw_host); dns_forw_host = 0; |
198 | #endif |
198 | #endif |
|
|
199 | free (script_if_up); script_if_up = 0; |
|
|
200 | free (script_node_up); script_node_up = 0; |
|
|
201 | free (script_node_change); script_node_change = 0; |
|
|
202 | free (script_node_down); script_node_down = 0; |
199 | } |
203 | } |
200 | |
204 | |
201 | void |
205 | void |
202 | configuration::clear () |
206 | configuration::clear () |
203 | { |
207 | { |
… | |
… | |
337 | conf.nfmark = atoi (val); |
341 | conf.nfmark = atoi (val); |
338 | else if (!strcmp (var, "if-up")) |
342 | else if (!strcmp (var, "if-up")) |
339 | free (conf.script_if_up), conf.script_if_up = strdup (val); |
343 | free (conf.script_if_up), conf.script_if_up = strdup (val); |
340 | else if (!strcmp (var, "node-up")) |
344 | else if (!strcmp (var, "node-up")) |
341 | free (conf.script_node_up), conf.script_node_up = strdup (val); |
345 | free (conf.script_node_up), conf.script_node_up = strdup (val); |
|
|
346 | else if (!strcmp (var, "node-change")) |
|
|
347 | free (conf.script_node_change), conf.script_node_change = strdup (val); |
342 | else if (!strcmp (var, "node-down")) |
348 | else if (!strcmp (var, "node-down")) |
343 | free (conf.script_node_down), conf.script_node_down = strdup (val); |
349 | free (conf.script_node_down), conf.script_node_down = strdup (val); |
344 | else if (!strcmp (var, "pid-file")) |
350 | else if (!strcmp (var, "pid-file")) |
345 | free (conf.pidfilename), conf.pidfilename = strdup (val); |
351 | free (conf.pidfilename), conf.pidfilename = strdup (val); |
346 | else if (!strcmp (var, "dns-forw-host")) |
352 | else if (!strcmp (var, "dns-forw-host")) |