From 35f1b7fa26b57b6f1e72eaf6d4cdc0ed2fc7e53e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 25 Oct 2005 18:06:29 +0000 Subject: [PATCH] fix minor memory leak in config svn:r5318 --- src/or/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/or/config.c b/src/or/config.c index 78c3a9cb67..dd85522cb4 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);