summaryrefslogtreecommitdiff
path: root/usr/src/lib/libiscsit
diff options
context:
space:
mode:
authorCharles Ting <Charles.Ting@Sun.COM>2009-07-21 13:41:06 -0400
committerCharles Ting <Charles.Ting@Sun.COM>2009-07-21 13:41:06 -0400
commit3c006dd52b10b0c2c2929e73abc98aec63f1f124 (patch)
treeab3b7104c43bd19df766725fbcf1e748e1e82517 /usr/src/lib/libiscsit
parent81ede45dcc71bca2f954754b750008274d5ce7b0 (diff)
downloadillumos-joyent-3c006dd52b10b0c2c2929e73abc98aec63f1f124.tar.gz
6852348 it_config_load() leaks an nvlist
Diffstat (limited to 'usr/src/lib/libiscsit')
-rw-r--r--usr/src/lib/libiscsit/common/libiscsit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/libiscsit/common/libiscsit.c b/usr/src/lib/libiscsit/common/libiscsit.c
index 383048572c..886a146bd6 100644
--- a/usr/src/lib/libiscsit/common/libiscsit.c
+++ b/usr/src/lib/libiscsit/common/libiscsit.c
@@ -128,6 +128,10 @@ it_config_load(it_config_t **cfg)
*cfg = newcfg;
}
+ if (cfg_nv) {
+ nvlist_free(cfg_nv);
+ }
+
return (ret);
}