From: Jeffrey Hutzelman Date: Tue, 12 Oct 2004 21:51:55 +0000 (+0000) Subject: cleanup-rx-peer-leak-20041012 X-Git-Tag: BP-disconnected~219 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e106a39fe62a8d338ac7f8cf4ed857c97a9b3484;p=packages%2Fo%2Fopenafs.git 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. --- diff --git a/src/rx/rx.c b/src/rx/rx.c index c0a3d496b..e3a68ed00 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -5763,7 +5763,7 @@ rxi_ReapConnections(void) 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; } else