changeset 10572:e1b76e0de5ea

6879698 COMSTAR - Find memory leaks after creating several LUs
author tim szeto <Tim.Szeto@Sun.COM>
date Thu, 17 Sep 2009 08:42:57 -0600
parents 6d0b902a4da8
children a950fee27362
files usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c	Thu Sep 17 12:49:27 2009 +0530
+++ b/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c	Thu Sep 17 08:42:57 2009 -0600
@@ -2962,6 +2962,8 @@
 		cmn_err(CE_NOTE, "ioctl failed %d", rc);
 	}
 	kmem_free(zc, sizeof (zfs_cmd_t));
+	if (packed)
+		kmem_free(packed, len);
 out:
 	nvlist_free(nv);
 	(void) ldi_close(zfs_lh, FREAD|FWRITE, kcred);