summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-06-20 13:07:28 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-06-20 13:07:28 +0000
commit0d05320d3398b8b3197651d60300801cee9d054e (patch)
tree3076bd50533cb725d0f746751b85738069982b9c
parent87738edeea3a17bfc0f19c6e1c3a597f3970e943 (diff)
parente3a966fe577766e1cf319609f3e0a5981c5b3e7d (diff)
downloadillumos-joyent-0d05320d3398b8b3197651d60300801cee9d054e.tar.gz
[illumos-gate merge]
commit e3a966fe577766e1cf319609f3e0a5981c5b3e7d 11262 Memory leak in SMB client
-rw-r--r--usr/src/uts/common/fs/smbclnt/netsmb/smb_usr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/smbclnt/netsmb/smb_usr.c b/usr/src/uts/common/fs/smbclnt/netsmb/smb_usr.c
index d83c3a086c..f2de187194 100644
--- a/usr/src/uts/common/fs/smbclnt/netsmb/smb_usr.c
+++ b/usr/src/uts/common/fs/smbclnt/netsmb/smb_usr.c
@@ -36,7 +36,7 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
- * Copyright 2018 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2019 Nexenta by DDN, Inc. All rights reserved.
*/
#include <sys/param.h>
@@ -180,6 +180,8 @@ smb_usr_xnp(smb_dev_t *sdp, intptr_t arg, int flags, cred_t *cr)
out:
kmem_free(ioc, sizeof (*ioc));
+ md_done(&recv_md);
+ mb_done(&send_mb);
return (err);
}