diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-04-08 15:37:02 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-05-03 18:15:11 +0300 |
commit | 4bd0c4852aad724fd9639f5250c5893341cd5935 (patch) | |
tree | 2b3b990fb1717999dcd382aa8d8d5b5b47c70b69 /src/core/or/circuitlist.c | |
parent | 5f96b7abccc8e393c7f5e370ab3bf838dc3f8d4f (diff) | |
download | tor-4bd0c4852aad724fd9639f5250c5893341cd5935.tar.gz tor-4bd0c4852aad724fd9639f5250c5893341cd5935.zip |
Hiding crypt_path_t: Move the free func in crypt_path.c.
Again everything is moved, apart from a free line using ->private.
Diffstat (limited to 'src/core/or/circuitlist.c')
-rw-r--r-- | src/core/or/circuitlist.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/core/or/circuitlist.c b/src/core/or/circuitlist.c index ee9e89f380..83c651ff17 100644 --- a/src/core/or/circuitlist.c +++ b/src/core/or/circuitlist.c @@ -133,7 +133,6 @@ static smartlist_t *circuits_pending_other_guards = NULL; * circuit_mark_for_close and which are waiting for circuit_about_to_free. */ static smartlist_t *circuits_pending_close = NULL; -static void circuit_free_cpath_node(crypt_path_t *victim); static void cpath_ref_decref(crypt_path_reference_t *cpath_ref); static void circuit_about_to_free_atexit(circuit_t *circ); static void circuit_about_to_free(circuit_t *circ); @@ -1333,22 +1332,6 @@ circuit_free_all(void) HT_CLEAR(chan_circid_map, &chan_circid_map); } -/** Deallocate space associated with the cpath node <b>victim</b>. */ -static void -circuit_free_cpath_node(crypt_path_t *victim) -{ - if (!victim) - return; - - relay_crypto_clear(&victim->crypto); - onion_handshake_state_release(&victim->handshake_state); - crypto_dh_free(victim->rend_dh_handshake_state); - extend_info_free(victim->extend_info); - - memwipe(victim, 0xBB, sizeof(crypt_path_t)); /* poison memory */ - tor_free(victim); -} - /** Release a crypt_path_reference_t*, which may be NULL. */ static void cpath_ref_decref(crypt_path_reference_t *cpath_ref) |