fix minor memory leak in config

svn:r5318
This commit is contained in:
Nick Mathewson 2005-10-25 18:06:29 +00:00
parent 5d85560d9e
commit 35f1b7fa26

View File

@ -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);