summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-05 17:56:34 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-05 17:56:34 +0000
commit92bb5b2860622795d24f9c2945868762a66e9a1e (patch)
treeb2a77e8e235f36b7ab16b75a5d0e3695ce48246b /src/or/connection_edge.c
parentac84512489404f4d0cecec7353b1cc1dae1d2c69 (diff)
downloadtor-92bb5b2860622795d24f9c2945868762a66e9a1e.tar.gz
tor-92bb5b2860622795d24f9c2945868762a66e9a1e.zip
strdup the intro point when you pick it, so you
don't free it and then return it svn:r1483
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index cf61be1e9b..61d60271fe 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -796,6 +796,7 @@ circuit_get_open_circ_or_launch(connection_t *conn,
new_circ_purpose = desired_circuit_purpose;
circ = circuit_launch_new(new_circ_purpose, exitname);
+ tor_free(exitname);
if(circ &&
(desired_circuit_purpose != CIRCUIT_PURPOSE_C_GENERAL)) {