From owner-svn-src-stable-10@FreeBSD.ORG Tue Aug 5 08:30:39 2014 Return-Path: Delivered-To: svn-src-stable-10@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B0BE72 for ; Tue, 5 Aug 2014 08:30:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00EBC24A5 for ; Tue, 5 Aug 2014 08:30:39 +0000 (UTC) Received: from mav (uid 1131) (envelope-from mav@FreeBSD.org) id 5b7c by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 05 Aug 2014 08:30:38 +0000 From: Alexander Motin Date: Tue, 5 Aug 2014 08:30:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r269574 - stable/10/sys/cam/ctl X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e0962e.5b7c.280d32bd@svn.freebsd.org> X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2014 08:30:39 -0000 Author: mav Date: Tue Aug 5 08:30:38 2014 New Revision: 269574 URL: http://svnweb.freebsd.org/changeset/base/269574 Log: MFC r269444, r269450: Plug EXTENDED COPY request data memory leak. Modified: stable/10/sys/cam/ctl/ctl_tpc.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cam/ctl/ctl_tpc.c ============================================================================== --- stable/10/sys/cam/ctl/ctl_tpc.c Tue Aug 5 08:30:07 2014 (r269573) +++ stable/10/sys/cam/ctl/ctl_tpc.c Tue Aug 5 08:30:38 2014 (r269574) @@ -942,6 +942,8 @@ tpc_process(struct tpc_list *list) done: //printf("ZZZ done\n"); + free(list->params, M_CTL); + list->params = NULL; mtx_lock(&lun->lun_lock); if ((list->flags & EC_LIST_ID_USAGE_MASK) == EC_LIST_ID_USAGE_NONE) { TAILQ_REMOVE(&lun->tpc_lists, list, links);