summaryrefslogtreecommitdiff
path: root/source3/utils/net_g_lock.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-12 12:12:25 +0100
committerVolker Lendecke <vl@samba.org>2010-03-12 12:12:42 +0100
commit1728b5fa6f0efd443799550ab630abd8282a3c9c (patch)
tree32d8f5832b77dfd6a8b908a8c2a0970cfad296d5 /source3/utils/net_g_lock.c
parentbc1f3fe99e8ca435b6622462dd248663df3002a3 (diff)
downloadsamba-1728b5fa6f0efd443799550ab630abd8282a3c9c.tar.gz
samba-1728b5fa6f0efd443799550ab630abd8282a3c9c.tar.bz2
samba-1728b5fa6f0efd443799550ab630abd8282a3c9c.zip
s3: Actually use mem_ctx in net_g_lock_init()
Diffstat (limited to 'source3/utils/net_g_lock.c')
-rw-r--r--source3/utils/net_g_lock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_g_lock.c b/source3/utils/net_g_lock.c
index 7632302cea..54cb2d439e 100644
--- a/source3/utils/net_g_lock.c
+++ b/source3/utils/net_g_lock.c
@@ -30,17 +30,17 @@ static bool net_g_lock_init(TALLOC_CTX *mem_ctx,
struct messaging_context *msg = NULL;
struct g_lock_ctx *g_ctx = NULL;
- ev = tevent_context_init(talloc_tos());
+ ev = tevent_context_init(mem_ctx);
if (ev == NULL) {
d_fprintf(stderr, "ERROR: could not init event context\n");
goto fail;
}
- msg = messaging_init(talloc_tos(), procid_self(), ev);
+ msg = messaging_init(mem_ctx, procid_self(), ev);
if (msg == NULL) {
d_fprintf(stderr, "ERROR: could not init messaging context\n");
goto fail;
}
- g_ctx = g_lock_ctx_init(talloc_tos(), msg);
+ g_ctx = g_lock_ctx_init(mem_ctx, msg);
if (g_ctx == NULL) {
d_fprintf(stderr, "ERROR: could not init g_lock context\n");
goto fail;