mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'tor-github/pr/1346' into maint-0.4.1
This commit is contained in:
@@ -3355,6 +3355,10 @@ router_free_all(void)
|
||||
crypto_pk_free(server_identitykey);
|
||||
crypto_pk_free(client_identitykey);
|
||||
|
||||
/* Destroying a locked mutex is undefined behaviour. This mutex may be
|
||||
* locked, because multiple threads can access it. But we need to destroy
|
||||
* it, otherwise re-initialisation will trigger undefined behaviour.
|
||||
* See #31735 for details. */
|
||||
tor_mutex_free(key_lock);
|
||||
routerinfo_free(desc_routerinfo);
|
||||
extrainfo_free(desc_extrainfo);
|
||||
|
||||
Reference in New Issue
Block a user