diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-28 00:05:11 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-28 00:05:11 +0000 |
commit | b238f4a2ffeb225d16857b594355dc60c976e3e0 (patch) | |
tree | 27468e3b57527992947d4e4f56fb1cc085816fec /source3/smbd | |
parent | 8f11c24b74ff943e67a456c17c1ac139fa801c6d (diff) | |
download | samba-b238f4a2ffeb225d16857b594355dc60c976e3e0.tar.gz samba-b238f4a2ffeb225d16857b594355dc60c976e3e0.tar.bz2 samba-b238f4a2ffeb225d16857b594355dc60c976e3e0.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.
(This used to be commit 1be60597cd62af2b30a1496d06ea5704e87d3b7d)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/sec_ctx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index f6563ffe96..6f98e9df6b 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/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; |