mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
fix a memory leak from r10504 (i think)
svn:r10829
This commit is contained in:
parent
76c5fbfe28
commit
2c2f7ee6a4
@ -1261,6 +1261,7 @@ retry_listeners(int type, config_line_t *cfg,
|
||||
|
||||
if (listensockaddr) {
|
||||
conn = connection_create_listener(listensockaddr, type, address);
|
||||
tor_free(listensockaddr);
|
||||
tor_free(address);
|
||||
} else
|
||||
conn = NULL;
|
||||
@ -1271,7 +1272,7 @@ retry_listeners(int type, config_line_t *cfg,
|
||||
if (new_conns)
|
||||
smartlist_add(new_conns, conn);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (free_launch_elts) {
|
||||
|
Loading…
Reference in New Issue
Block a user