summaryrefslogtreecommitdiffstats
path: root/source/smbd/sec_ctx.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-28 00:05:11 +0000
committerJeremy Allison <jra@samba.org>2001-04-28 00:05:11 +0000
commit1be60597cd62af2b30a1496d06ea5704e87d3b7d (patch)
tree44b092d2b1198ccd5af22950048d402faa21ffbe /source/smbd/sec_ctx.c
parent956201c4fb6e604407911b9709574f0c24dcb84f (diff)
downloadsamba-1be60597cd62af2b30a1496d06ea5704e87d3b7d.tar.gz
samba-1be60597cd62af2b30a1496d06ea5704e87d3b7d.tar.xz
samba-1be60597cd62af2b30a1496d06ea5704e87d3b7d.zip
rpcclient/rpcclient.c: Non-void return in void function.
smbd/sec_ctx.c: Fixed potential memory leak spotted by Kenichi Okuyama@Tokyo Research Lab, IBM-Japan, Co. utils/nmblookup.c: gcc warning on Solaris fix. Jeremy.
Diffstat (limited to 'source/smbd/sec_ctx.c')
-rw-r--r--source/smbd/sec_ctx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c
index f6563ffe96e..6f98e9df6b0 100644
--- a/source/smbd/sec_ctx.c
+++ b/source/smbd/sec_ctx.c
@@ -152,8 +152,10 @@ int get_current_groups(int *p_ngroups, gid_t **p_groups)
return -1;
}
- if ((ngroups = sys_getgroups(ngroups,groups)) == -1)
+ if ((ngroups = sys_getgroups(ngroups,groups)) == -1) {
+ safe_free(groups);
return -1;
+ }
(*p_ngroups) = ngroups;
(*p_groups) = groups;