From 7ddf663636a29e754b5d3488f9ec1cc601b79358 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Mon, 18 Oct 2004 04:24:31 +0000 Subject: [PATCH] STABLE12-cleanup-rx-peer-leak-20041012 if the peer was the second in the chain we could throw away our reference to the first, effectively leaking it forever. (cherry picked from commit e106a39fe62a8d338ac7f8cf4ed857c97a9b3484) --- src/rx/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index f0dda8430..4a4ea77f0 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -5681,7 +5681,7 @@ void rxi_ReapConnections() MUTEX_ENTER(&rx_stats_mutex); rx_stats.nPeerStructs--; MUTEX_EXIT(&rx_stats_mutex); - if (prev == *peer_ptr) { + if (peer == *peer_ptr) { *peer_ptr = next; prev = next; } -- 2.39.5