From owner-svn-src-head@FreeBSD.ORG Tue May 12 15:14:38 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35086106564A; Tue, 12 May 2009 15:14:38 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 24D858FC18; Tue, 12 May 2009 15:14:38 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4CFEcgk025760; Tue, 12 May 2009 15:14:38 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4CFEcdb025759; Tue, 12 May 2009 15:14:38 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <200905121514.n4CFEcdb025759@svn.freebsd.org> From: Edward Tomasz Napierala Date: Tue, 12 May 2009 15:14:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192016 - head/sys/cam X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2009 15:14:39 -0000 Author: trasz Date: Tue May 12 15:14:37 2009 New Revision: 192016 URL: http://svn.freebsd.org/changeset/base/192016 Log: Add missing free(9) in error case. Found with: Coverity Prevent(tm) CID: 4224 Modified: head/sys/cam/cam_periph.c Modified: head/sys/cam/cam_periph.c ============================================================================== --- head/sys/cam/cam_periph.c Tue May 12 15:03:47 2009 (r192015) +++ head/sys/cam/cam_periph.c Tue May 12 15:14:37 2009 (r192016) @@ -173,6 +173,7 @@ cam_periph_alloc(periph_ctor_t *periph_c xpt_unlock_buses(); if (*p_drv == NULL) { printf("cam_periph_alloc: invalid periph name '%s'\n", name); + free(periph, M_CAMPERIPH); return (CAM_REQ_INVALID); }