summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2015-09-02 23:22:16 +0000
committerBryan Cantrill <bryan@joyent.com>2015-09-02 23:22:16 +0000
commitfd60a2aa0878d32dd98ef611789346763d2c37f7 (patch)
tree9085059edb70432f748c96ceef8336b241d558ee
parent72a4b60d9c699896148649f6d7e8446c2277ce00 (diff)
downloadillumos-joyent-fd60a2aa0878d32dd98ef611789346763d2c37f7.tar.gz
OS-4687 inotify_init leaks kernel memory20150903
-rw-r--r--usr/src/uts/common/io/inotify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/inotify.c b/usr/src/uts/common/io/inotify.c
index 3af79a0165..9e5f22539c 100644
--- a/usr/src/uts/common/io/inotify.c
+++ b/usr/src/uts/common/io/inotify.c
@@ -1335,6 +1335,7 @@ inotify_close(dev_t dev, int flag, int otyp, cred_t *cred_p)
*sp = (*sp)->ins_next;
crfree(state->ins_cred);
+ vmem_destroy(state->ins_wds);
ddi_soft_state_free(inotify_softstate, minor);
vmem_free(inotify_minor, (void *)(uintptr_t)minor, 1);