diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-25 18:06:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-25 18:06:29 +0000 |
commit | 35f1b7fa26b57b6f1e72eaf6d4cdc0ed2fc7e53e (patch) | |
tree | 6baf3789d0c948d5a3e4601b3d75a29e0dd25141 /src/or | |
parent | 5d85560d9e23147f85847f69a6255edfb432f565 (diff) | |
download | tor-35f1b7fa26b57b6f1e72eaf6d4cdc0ed2fc7e53e.tar tor-35f1b7fa26b57b6f1e72eaf6d4cdc0ed2fc7e53e.tar.gz |
fix minor memory leak in config
svn:r5318
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 78c3a9cb6..dd85522cb 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2880,7 +2880,7 @@ parse_dir_server_line(const char *line, int validate_only) { smartlist_t *items = NULL; int r, idx; - char *addrport, *address=NULL, *nickname=NULL, *fingerprint=NULL; + char *addrport=NULL, *address=NULL, *nickname=NULL, *fingerprint=NULL; uint16_t port; char digest[DIGEST_LEN]; int supports_v1 = 1; /*XXXX011 change default when clients support v2. */ @@ -2946,6 +2946,7 @@ parse_dir_server_line(const char *line, int validate_only) done: SMARTLIST_FOREACH(items, char*, s, tor_free(s)); smartlist_free(items); + tor_free(addrport); tor_free(address); tor_free(nickname); tor_free(fingerprint); |