]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
stop leaking options->ContactInfo on hup
authorRoger Dingledine <arma@torproject.org>
Tue, 29 Jun 2004 19:46:06 +0000 (19:46 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 29 Jun 2004 19:46:06 +0000 (19:46 +0000)
svn:r1989

src/or/config.c

index 10ac500288b18c83401c6996fca8bd51be79a7b1..ee3857a92a0d882430e872c780322f331b20fc60 100644 (file)
@@ -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);