diff options
author | Roger Dingledine <arma@torproject.org> | 2007-07-15 08:11:56 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-07-15 08:11:56 +0000 |
commit | 2c2f7ee6a42d8d71679c648222e819590bd2fd69 (patch) | |
tree | 8425e86749c4fb386a5789319d3b1c130ef43128 /src/or | |
parent | 76c5fbfe2812508a583a711603c2f1a752ac8441 (diff) | |
download | tor-2c2f7ee6a42d8d71679c648222e819590bd2fd69.tar.gz tor-2c2f7ee6a42d8d71679c648222e819590bd2fd69.zip |
fix a memory leak from r10504 (i think)
svn:r10829
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 706803711e..c586a97159 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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) { |