From owner-svn-src-stable-8@FreeBSD.ORG Mon May 16 12:11:30 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54869106564A; Mon, 16 May 2011 12:11:30 +0000 (UTC) (envelope-from zec@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 434A38FC0A; Mon, 16 May 2011 12:11:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4GCBU2U081644; Mon, 16 May 2011 12:11:30 GMT (envelope-from zec@svn.freebsd.org) Received: (from zec@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4GCBU4j081642; Mon, 16 May 2011 12:11:30 GMT (envelope-from zec@svn.freebsd.org) Message-Id: <201105161211.p4GCBU4j081642@svn.freebsd.org> From: Marko Zec Date: Mon, 16 May 2011 12:11:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r221985 - stable/8/sys/netgraph X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 12:11:30 -0000 Author: zec Date: Mon May 16 12:11:29 2011 New Revision: 221985 URL: http://svn.freebsd.org/changeset/base/221985 Log: MFC r220416: Properly unref ng_hub nodes on shutdown, so that we don't leak them. Modified: stable/8/sys/netgraph/ng_hub.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/netgraph/ng_hub.c ============================================================================== --- stable/8/sys/netgraph/ng_hub.c Mon May 16 12:00:32 2011 (r221984) +++ stable/8/sys/netgraph/ng_hub.c Mon May 16 12:11:29 2011 (r221985) @@ -157,6 +157,8 @@ ng_hub_shutdown(node_p node) const priv_p priv = NG_NODE_PRIVATE(node); free(priv, M_NETGRAPH_HUB); + NG_NODE_SET_PRIVATE(node, NULL); + NG_NODE_UNREF(node); return (0); }