summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-30 07:06:18 +0200
committerVolker Lendecke <vl@samba.org>2011-03-30 10:54:05 +0200
commit94daaf056d34a3546174e9ddb6c6db632dd17983 (patch)
tree06f9f1965eba1683c075c6291117e7246bc09b7d /nsswitch
parentc8a48a8a70bc41d3c51524c61b718f9ce24a6191 (diff)
downloadsamba-94daaf056d34a3546174e9ddb6c6db632dd17983.tar.gz
s3: Fix Coverity ID 2221: RESOURCE_LEAK
(cherry picked from commit a56eb9b88733fbee30e3640d3e4b0ede6bf434d7)
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index 9efd40b56a0..c9ebbe6544b 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -187,6 +187,8 @@ static bool wbinfo_get_userinfo(char *user)
pwd->pw_dir,
pwd->pw_shell);
+ wbcFreeMemory(pwd);
+
return true;
}