From owner-freebsd-net Tue Jun 5 13:18:36 2001 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 4F07C37B407; Tue, 5 Jun 2001 13:18:29 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id QAA90495; Tue, 5 Jun 2001 16:18:24 -0400 (EDT) (envelope-from wollman) Date: Tue, 5 Jun 2001 16:18:24 -0400 (EDT) From: Garrett Wollman Message-Id: <200106052018.QAA90495@khavrinen.lcs.mit.edu> To: Ruslan Ermilov Cc: freebsd-net@FreeBSD.ORG Subject: Re: leaking route structures, please review In-Reply-To: <20010605204121.A49067@sunbay.com> References: <20010605145104.A68594@skriver.dk> <200106051513.LAA87829@khavrinen.lcs.mit.edu> <20010605204121.A49067@sunbay.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org < said: > Hmm, and what happens if the PCB is the only holder of this route? > The refcnt will be 1 in this case, and the code drops the reference > by setting inp->inp_route.ro_rt = 0. How this route can be reused > (and deleted) later? That would be a bug. rtfree() must always be called before forgetting a reference. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message