]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Free prepend_policy values in origin circuits
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Mar 2013 16:29:08 +0000 (12:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Mar 2013 16:29:08 +0000 (12:29 -0400)
src/or/circuitlist.c

index 17e18c760358898af4ac39b45ed37d21c1bac0c3..eab3ebff2d381b334f07337c8669c3390a0a4280 100644 (file)
@@ -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. */