diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2023-10-29 19:16:49 +0100 |
---|---|---|
committer | trinity-1686a <trinity@deuxfleurs.fr> | 2023-10-29 19:16:49 +0100 |
commit | 798fe6c5ed220fda4d171ed5a051311b23287832 (patch) | |
tree | 1def2bb8094f9b25721d493ffe8aace5bc5d57cf /src/core | |
parent | d3dadf51afa90f96c9df4e3247763b714b0d9c41 (diff) | |
download | tor-798fe6c5ed220fda4d171ed5a051311b23287832.tar.gz tor-798fe6c5ed220fda4d171ed5a051311b23287832.zip |
fix memory leak in dos stream for resolve requests
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/connection_edge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c index fd758be75d..b36d0d9013 100644 --- a/src/core/or/connection_edge.c +++ b/src/core/or/connection_edge.c @@ -4234,8 +4234,10 @@ connection_exit_begin_resolve(cell_t *cell, or_circuit_t *circ) break; case DOS_STREAM_DEFENSE_REFUSE_STREAM: dns_send_resolved_error_cell(dummy_conn, RESOLVED_TYPE_ERROR_TRANSIENT); + connection_free_(TO_CONN(dummy_conn)); return 0; case DOS_STREAM_DEFENSE_CLOSE_CIRCUIT: + connection_free_(TO_CONN(dummy_conn)); return -END_CIRC_REASON_RESOURCELIMIT; } |