From owner-cvs-all@FreeBSD.ORG Tue Mar 1 11:31:07 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3437E16A4CE; Tue, 1 Mar 2005 11:31:07 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ADDB43D48; Tue, 1 Mar 2005 11:31:07 +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 j21BV6N0041303; Tue, 1 Mar 2005 11:31:06 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j21BV6rO041302; Tue, 1 Mar 2005 11:31:06 GMT (envelope-from glebius) Message-Id: <200503011131.j21BV6rO041302@repoman.freebsd.org> From: Gleb Smirnoff Date: Tue, 1 Mar 2005 11:31:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netgraph ng_parse.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 11:31:07 -0000 glebius 2005-03-01 11:31:06 UTC FreeBSD src repository Modified files: sys/netgraph ng_parse.c Log: Replace NG_PARSE_APPEND() macro with ng_parse_append() function. Check its return value and free resources if function returns error. Plug several memory leaks with this change. Submitted by: archie Found by: Coverity Prevent analysis tool Revision Changes Path 1.25 +70 -27 src/sys/netgraph/ng_parse.c