summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-07 15:19:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:09 -0500
commit68b531e81784d218b598e4ec403443bbc039ca77 (patch)
treee685ecad58c316d598db1cace2e6108845cd47a5 /source4/scripting/ejs
parent56ab0cd77c7abf777ebe5666a47fa3affea7d2ae (diff)
downloadsamba-68b531e81784d218b598e4ec403443bbc039ca77.tar.gz
samba-68b531e81784d218b598e4ec403443bbc039ca77.tar.bz2
samba-68b531e81784d218b598e4ec403443bbc039ca77.zip
r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname() metze (This used to be commit b54584dfabee77ec7743cab431bda9765057a295)
Diffstat (limited to 'source4/scripting/ejs')
-rw-r--r--source4/scripting/ejs/smbcalls_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c
index 4d4e12e855..73b6661cd3 100644
--- a/source4/scripting/ejs/smbcalls_rpc.c
+++ b/source4/scripting/ejs/smbcalls_rpc.c
@@ -88,7 +88,7 @@ static int ejs_irpc_connect(MprVarHandle eid, int argc, char **argv)
return -1;
}
- p->dest_ids = irpc_servers_byname(p->msg_ctx, p->server_name);
+ p->dest_ids = irpc_servers_byname(p->msg_ctx, p, p->server_name);
if (p->dest_ids == NULL || p->dest_ids[0].id == 0) {
talloc_free(p);
status = NT_STATUS_OBJECT_NAME_NOT_FOUND;