From owner-cvs-all@FreeBSD.ORG Sat Jan 26 07:08:48 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E51A416A418; Sat, 26 Jan 2008 07:08:48 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B698A13C448; Sat, 26 Jan 2008 07:08:48 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0Q78mNL045287; Sat, 26 Jan 2008 07:08:48 GMT (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0Q78mMO045286; Sat, 26 Jan 2008 07:08:48 GMT (envelope-from mtm) Message-Id: <200801260708.m0Q78mMO045286@repoman.freebsd.org> From: Mike Makonnen Date: Sat, 26 Jan 2008 07:08:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/netinet6 ip6_output.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 26 Jan 2008 07:08:49 -0000 mtm 2008-01-26 07:08:48 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/netinet6 ip6_output.c Log: MFC: rev. 1.110 ---------------------------------------------------------------------------- Instead of manually freeing the packet options structure (and not even doing a good job of it) in the copypktopts() function, just call ip6_clearpktopts() directly. Otherwise, the callers of this function would end up freeing the memory twice. Reviewed by: jinmei PR: kern/116360 ---------------------------------------------------------------------------- Revision Changes Path 1.90.2.11 +1 -6 src/sys/netinet6/ip6_output.c