diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-28 10:39:25 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-05-28 11:47:11 +0200 |
commit | 9e05d3430fedde70fcb1f6a1121c2cb67e4ce0f0 (patch) | |
tree | 5cb4b167d93d23af5fc7ac748835ccf07fa766a5 | |
parent | 77ce431fdbd9f85f44c9bd8812e275a0b0e73f5d (diff) | |
download | samba-9e05d3430fedde70fcb1f6a1121c2cb67e4ce0f0.tar.gz samba-9e05d3430fedde70fcb1f6a1121c2cb67e4ce0f0.tar.bz2 samba-9e05d3430fedde70fcb1f6a1121c2cb67e4ce0f0.zip |
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
-rw-r--r-- | source3/locking/locking.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 3e511c487d..a4561f50d8 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -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; } } |