diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2017-01-06 18:19:31 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2017-01-06 16:45:01 -0500 |
commit | cc6b30399e68fb9666466c57ed822f297b2c6ae4 (patch) | |
tree | e7161ec5bc53d20c7b7cb69745299484a3049fa2 | |
parent | c2c0835a754ef6f7e4546d9f3fd92174c265981f (diff) | |
download | illumos-joyent-cc6b30399e68fb9666466c57ed822f297b2c6ae4.tar.gz |
7737 libipadm`ipadm_enable_if() leaks ifnvl
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r-- | usr/src/lib/libipadm/common/ipadm_if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/lib/libipadm/common/ipadm_if.c b/usr/src/lib/libipadm/common/ipadm_if.c index 6d1e27dcbf..41f22e4eeb 100644 --- a/usr/src/lib/libipadm/common/ipadm_if.c +++ b/usr/src/lib/libipadm/common/ipadm_if.c @@ -1501,6 +1501,8 @@ ipadm_enable_if(ipadm_handle_t iph, const char *ifname, uint32_t flags) iph->iph_flags |= IPH_INIT; status = i_ipadm_init_ifobj(iph, ifname, ifnvl); iph->iph_flags &= ~IPH_INIT; + + nvlist_free(ifnvl); return (status); } |