diff options
author | Charles Ting <Charles.Ting@Sun.COM> | 2009-07-21 13:41:06 -0400 |
---|---|---|
committer | Charles Ting <Charles.Ting@Sun.COM> | 2009-07-21 13:41:06 -0400 |
commit | 3c006dd52b10b0c2c2929e73abc98aec63f1f124 (patch) | |
tree | ab3b7104c43bd19df766725fbcf1e748e1e82517 /usr/src/lib/libiscsit | |
parent | 81ede45dcc71bca2f954754b750008274d5ce7b0 (diff) | |
download | illumos-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.c | 4 |
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); } |