Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2014 08:30:38 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
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
Message-ID:  <53e0962e.5b7c.280d32bd@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e0962e.5b7c.280d32bd>