From owner-cvs-src@FreeBSD.ORG Sat Jan 21 20:11:50 2006 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 33B7C16A41F; Sat, 21 Jan 2006 20:11:50 +0000 (GMT) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E003E43D46; Sat, 21 Jan 2006 20:11:49 +0000 (GMT) (envelope-from alc@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 k0LKBnAN014726; Sat, 21 Jan 2006 20:11:49 GMT (envelope-from alc@repoman.freebsd.org) Received: (from alc@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0LKBnr3014725; Sat, 21 Jan 2006 20:11:49 GMT (envelope-from alc) Message-Id: <200601212011.k0LKBnr3014725@repoman.freebsd.org> From: Alan Cox Date: Sat, 21 Jan 2006 20:11:49 +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/kern imgact_elf.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: Sat, 21 Jan 2006 20:11:50 -0000 alc 2006-01-21 20:11:49 UTC FreeBSD src repository Modified files: sys/kern imgact_elf.c Log: Avoid a vm object reference leak in a rarely used code path. An executable contains at most one PT_INTERP program header. Therefore, the loop that searches for it can terminate after it is found rather than iterating over the entire set of program headers. Eliminate an unneeded initialization. Reviewed by: tegge Revision Changes Path 1.175 +7 -10 src/sys/kern/imgact_elf.c