summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2017-01-06 18:17:10 +0300
committerDan McDonald <danmcd@omniti.com>2017-01-06 16:45:48 -0500
commitb130c20454b5d071292134d42cf34c9f5938c1d5 (patch)
tree9ecd4a4942c965ab4941c729b56aa271e25bb4f8
parentcc6b30399e68fb9666466c57ed822f297b2c6ae4 (diff)
downloadillumos-joyent-b130c20454b5d071292134d42cf34c9f5938c1d5.tar.gz
7738 libipadm`ipadm_enable_addr() leaks addrnvl
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_addr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/lib/libipadm/common/ipadm_addr.c b/usr/src/lib/libipadm/common/ipadm_addr.c
index 0668c1de5b..a62bcb165b 100644
--- a/usr/src/lib/libipadm/common/ipadm_addr.c
+++ b/usr/src/lib/libipadm/common/ipadm_addr.c
@@ -3578,6 +3578,7 @@ ipadm_enable_addr(ipadm_handle_t iph, const char *aobjname, uint32_t flags)
break;
}
+ nvlist_free(addrnvl);
return (status);
}