summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-07 18:40:25 +0100
committerGünther Deschner <gd@samba.org>2008-01-07 19:38:22 +0100
commit0b92d8bc79172dc587f53ce4b35a8fa3128ae0ea (patch)
tree68c5b70ce6e9d7e42a30799dfe270532771a4e4b /source3
parentcc1982ab1cb436a9410699bac5bafa7c6077530a (diff)
downloadsamba-0b92d8bc79172dc587f53ce4b35a8fa3128ae0ea.tar.gz
samba-0b92d8bc79172dc587f53ce4b35a8fa3128ae0ea.tar.bz2
samba-0b92d8bc79172dc587f53ce4b35a8fa3128ae0ea.zip
Free libnet_JoinCtx after joining.
Guenther (This used to be commit 5abae9ef15fa9884c5c4a0e256274f70f6ecd779)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/joindomain.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index c7849c952f..8fe6193f40 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -77,7 +77,10 @@ static WERROR NetJoinDomainLocal(struct libnetapi_ctx *mem_ctx,
r->in.join_flags = join_flags;
r->in.modify_config = true;
- return libnet_Join(mem_ctx, r);
+ werr = libnet_Join(mem_ctx, r);
+ TALLOC_FREE(r);
+
+ return werr;
}
static WERROR NetJoinDomainRemote(struct libnetapi_ctx *ctx,