aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-06-29 19:46:06 +0000
committerRoger Dingledine <arma@torproject.org>2004-06-29 19:46:06 +0000
commit899bd4f47111173d66327fa228aca18bb3cb6d16 (patch)
treefe915cd7f499bea598c185a990c1f7f439a04d15 /src/or
parent0f69fd99541a62c0578c785b3a249c8d8ba20353 (diff)
downloadtor-899bd4f47111173d66327fa228aca18bb3cb6d16.tar
tor-899bd4f47111173d66327fa228aca18bb3cb6d16.tar.gz
stop leaking options->ContactInfo on hup
svn:r1989
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 10ac50028..ee3857a92 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -193,7 +193,7 @@ static int config_assign(or_options_t *options, struct config_line_t *list) {
config_compare(list, "BandwidthRate", CONFIG_TYPE_INT, &options->BandwidthRate) ||
config_compare(list, "BandwidthBurst", CONFIG_TYPE_INT, &options->BandwidthBurst) ||
- config_compare(list, "ContactInfo", CONFIG_TYPE_STRING, &options->ContactInfo) ||
+ config_compare(list, "ContactInfo", CONFIG_TYPE_STRING, &options->ContactInfo) ||
config_compare(list, "DebugLogFile", CONFIG_TYPE_STRING, &options->DebugLogFile) ||
config_compare(list, "DataDirectory", CONFIG_TYPE_STRING, &options->DataDirectory) ||
@@ -470,6 +470,7 @@ static int resolve_my_address(or_options_t *options) {
/** Release storage held by <b>options</b> */
static void free_options(or_options_t *options) {
config_free_lines(options->LogOptions);
+ tor_free(options->ContactInfo);
tor_free(options->DebugLogFile);
tor_free(options->DataDirectory);
tor_free(options->RouterFile);