mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
stop duplicate free
svn:r114
This commit is contained in:
parent
f033442be2
commit
54af97ccdc
@ -191,7 +191,8 @@ void router_forget_router(uint32_t addr, uint16_t port) {
|
||||
|
||||
assert(i != rarray_len); /* if so then router_get_by_addr_port should have returned null */
|
||||
|
||||
free(router);
|
||||
// free(router); /* don't actually free; we'll free it when we free the whole thing */
|
||||
|
||||
// log(LOG_DEBUG,"router_forget_router(): Forgot about router %d:%d",addr,port);
|
||||
for(; i<rarray_len-1;i++)
|
||||
router_array[i] = router_array[i+1];
|
||||
|
Loading…
Reference in New Issue
Block a user