aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_tpc.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-08-02 20:15:00 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-08-02 20:15:00 +0000
commit475267eff1f7bb8e8c783f6bf205019079f0e0de (patch)
treed7927bde7fe2a3d2a19bb99ee238f56d00687a2e /sys/cam/ctl/ctl_tpc.c
parenta7c09f5c127c481d29d1899cf83157a460d40d64 (diff)
downloadsrc-475267eff1f7bb8e8c783f6bf205019079f0e0de.tar.gz
src-475267eff1f7bb8e8c783f6bf205019079f0e0de.zip
Plug EXTENDED COPY request data memory leak.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=269444
Diffstat (limited to 'sys/cam/ctl/ctl_tpc.c')
-rw-r--r--sys/cam/ctl/ctl_tpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_tpc.c b/sys/cam/ctl/ctl_tpc.c
index dc33fde0d89e..4197287dbdfa 100644
--- a/sys/cam/ctl/ctl_tpc.c
+++ b/sys/cam/ctl/ctl_tpc.c
@@ -948,6 +948,8 @@ done:
free(list, M_CTL);
} else {
list->completed = 1;
+ free(list->params, M_CTL);
+ list->params = NULL;
list->sense_data = ctsio->sense_data;
list->sense_len = ctsio->sense_len;
list->scsi_status = ctsio->scsi_status;