From 9e05d3430fedde70fcb1f6a1121c2cb67e4ce0f0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 28 May 2011 10:39:25 +0200 Subject: s3: Fix a tiny memleak in copy_unix_token Autobuild-User: Volker Lendecke Autobuild-Date: Sat May 28 11:47:11 CEST 2011 on sn-devel-104 --- source3/locking/locking.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/locking') 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; } } -- cgit