mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
fix minor memory leak in config
svn:r5318
This commit is contained in:
parent
5d85560d9e
commit
35f1b7fa26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user