From owner-cvs-all Wed Dec 19 11: 5: 1 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 517E037B405; Wed, 19 Dec 2001 11:04:57 -0800 (PST) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBJJ4vf48646; Wed, 19 Dec 2001 11:04:57 -0800 (PST) (envelope-from dillon) Message-Id: <200112191904.fBJJ4vf48646@freefall.freebsd.org> From: Matt Dillon Date: Wed, 19 Dec 2001 11:04:57 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_sbuf.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dillon 2001/12/19 11:04:57 PST Modified files: sys/kern subr_sbuf.c Log: Calculate whether the sbuf is dynamic *before* bzero()ing the structure. This fixes a serious memory leak in the sbuf code. MFC after: 3 days Revision Changes Path 1.14 +4 -1 src/sys/kern/subr_sbuf.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message