diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-16 20:38:57 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-16 20:38:57 +0000 |
commit | a42adce3628c9b82c91ff21e85c6a2d4fbcefc13 (patch) | |
tree | b7f04f7a405e5638f21ad1fd86d77e216e517d75 /src/or/config.c | |
parent | b0afd91afec362e3edc58d1928d2a63bcb3097e8 (diff) | |
download | tor-a42adce3628c9b82c91ff21e85c6a2d4fbcefc13.tar tor-a42adce3628c9b82c91ff21e85c6a2d4fbcefc13.tar.gz |
fix memory leak in router.c; start relying on NULL==(zero bytes)
svn:r2538
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/or/config.c b/src/or/config.c index fe386d8df..41ccd56bd 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -492,22 +492,13 @@ static void init_options(or_options_t *options) { memset(options,0,sizeof(or_options_t)); - options->LogOptions = NULL; options->ExitNodes = tor_strdup(""); options->EntryNodes = tor_strdup(""); options->StrictEntryNodes = options->StrictExitNodes = 0; options->ExcludeNodes = tor_strdup(""); options->RendNodes = tor_strdup(""); options->RendExcludeNodes = tor_strdup(""); - options->ExitPolicy = NULL; - options->SocksPolicy = NULL; - options->SocksBindAddress = NULL; - options->ORBindAddress = NULL; - options->DirBindAddress = NULL; - options->OutboundBindAddress = NULL; - options->RecommendedVersions = NULL; - options->PidFile = NULL; // tor_strdup("tor.pid"); - options->DataDirectory = NULL; + /* options->PidFile = tor_strdup("tor.pid"); */ options->PathlenCoinWeight = 0.3; options->MaxConn = 900; options->DirFetchPostPeriod = 600; @@ -517,11 +508,6 @@ init_options(or_options_t *options) options->BandwidthRate = 800000; /* at most 800kB/s total sustained incoming */ options->BandwidthBurst = 10000000; /* max burst on the token bucket */ options->NumCpus = 1; - options->RendConfigLines = NULL; - options->FirewallPorts = NULL; - options->DirServers = NULL; - options->MyFamily = NULL; - options->NodeFamilies = NULL; } static char * |