aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-19 12:29:08 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-19 12:29:08 -0400
commit73a35dc3c0b4ab6cf79d88fc513c5c2762eff28a (patch)
tree8337c3c25742a65907a06f803043d78319ca628b /src
parent2b22c0aeef6e71d56b12411d10484aaece769178 (diff)
downloadtor-73a35dc3c0b4ab6cf79d88fc513c5c2762eff28a.tar.gz
tor-73a35dc3c0b4ab6cf79d88fc513c5c2762eff28a.zip
Free prepend_policy values in origin circuits
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 17e18c7603..eab3ebff2d 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -24,6 +24,7 @@
#include "nodelist.h"
#include "onion.h"
#include "onion_fast.h"
+#include "policies.h"
#include "relay.h"
#include "rendclient.h"
#include "rendcommon.h"
@@ -653,6 +654,7 @@ circuit_free(circuit_t *circ)
memwipe(ocirc->socks_password, 0x06, ocirc->socks_password_len);
tor_free(ocirc->socks_password);
}
+ addr_policy_list_free(ocirc->prepend_policy);
} else {
or_circuit_t *ocirc = TO_OR_CIRCUIT(circ);
/* Remember cell statistics for this circuit before deallocating. */