From owner-cvs-src@FreeBSD.ORG Thu Sep 8 14:32:20 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A180116A436; Thu, 8 Sep 2005 14:32:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2241643D49; Thu, 8 Sep 2005 14:32:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j88EWKWO041013; Thu, 8 Sep 2005 14:32:20 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j88EWK65041012; Thu, 8 Sep 2005 14:32:20 GMT (envelope-from glebius) Message-Id: <200509081432.j88EWK65041012@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 8 Sep 2005 14:32:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netgraph ng_base.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 14:32:21 -0000 glebius 2005-09-08 14:32:20 UTC FreeBSD src repository Modified files: sys/netgraph ng_base.c Log: Fix an item leak, that happens when some node calls ng_callout() two times consequently, without checking whether callout has been serviced or not. (ng_pptpgre and ng_ppp were catched in this behavior). - In ng_callout() save old item before calling callout_reset(). If the latter has returned 1, then free this item. - In ng_uncallout() clear c->c_arg. Problem reported by: Alexandre Kardanev Revision Changes Path 1.112 +6 -2 src/sys/netgraph/ng_base.c