aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-15 08:11:56 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-15 08:11:56 +0000
commit2c2f7ee6a42d8d71679c648222e819590bd2fd69 (patch)
tree8425e86749c4fb386a5789319d3b1c130ef43128 /src/or
parent76c5fbfe2812508a583a711603c2f1a752ac8441 (diff)
downloadtor-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.c3
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) {