From owner-cvs-all Sat May 12 17: 7: 9 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1EEAE37B446; Sat, 12 May 2001 17:07:04 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4D074609257; Sat, 12 May 2001 17:07:04 -0700 (PDT) (envelope-from iedowse) Message-Id: <200105130007.f4D074609257@freefall.freebsd.org> From: Ian Dowse Date: Sat, 12 May 2001 17:07:03 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mount_nfs mount_nfs.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/05/12 17:07:03 PDT Modified files: sbin/mount_nfs mount_nfs.c Log: - Split out the {family,socktype}->netid conversion into a separate function; we now handle unknown protocols more gracefully. - Cache the return from getnetconfigent() so that we don't have to remember to call freenetconfigent() each time. This fixes a memory leak that would cause retrying background mount_nfs processes to slowly increase their memory usage. Revision Changes Path 1.43 +80 -12 src/sbin/mount_nfs/mount_nfs.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message