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 09:58:35 +0200
commita56eb9b88733fbee30e3640d3e4b0ede6bf434d7 (patch)
treefb04e6ad93a2368e421504240b623fdd94a9ffcb /nsswitch
parent9a97a8307ccda6d5a78de5e7e615209578d3a672 (diff)
downloadsamba-a56eb9b88733fbee30e3640d3e4b0ede6bf434d7.tar.gz
samba-a56eb9b88733fbee30e3640d3e4b0ede6bf434d7.tar.bz2
samba-a56eb9b88733fbee30e3640d3e4b0ede6bf434d7.zip
s3: Fix Coverity ID 2221: RESOURCE_LEAK
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 9efd40b56a..c9ebbe6544 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;
}