mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix a tiny memleak in copy_unix_token
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 28 11:47:11 CEST 2011 on sn-devel-104
This commit is contained in:
parent
77ce431fdb
commit
9e05d3430f
@ -1496,6 +1496,7 @@ static struct security_unix_token *copy_unix_token(TALLOC_CTX *ctx, const struct
|
||||
cpy->groups = (gid_t *)talloc_memdup(
|
||||
cpy, tok->groups, tok->ngroups * sizeof(gid_t));
|
||||
if (!cpy->groups) {
|
||||
TALLOC_FREE(cpy);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user