diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-10 02:37:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:30 -0500 |
commit | 60ec75cbc7dccfceec9c57799e2af5be21a08609 (patch) | |
tree | 2e98a1f002878f63264f3e22b2f4ad46f488ca4d /source4/scripting/ejs/smbcalls_rpc.c | |
parent | 1e5b309b4fc15dcc48007d856a954a2bea08b380 (diff) | |
download | samba-60ec75cbc7dccfceec9c57799e2af5be21a08609.tar.gz samba-60ec75cbc7dccfceec9c57799e2af5be21a08609.tar.bz2 samba-60ec75cbc7dccfceec9c57799e2af5be21a08609.zip |
r8276: fixed the remaining memory leaks in smbscript. We can now loop doing
lots of rpc calls without memory usage increasing.
(This used to be commit 9c885a7edb771486793eb287288158157b34e8f3)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_rpc.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls_rpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c index 8a5389fbab..9546dc5b01 100644 --- a/source4/scripting/ejs/smbcalls_rpc.c +++ b/source4/scripting/ejs/smbcalls_rpc.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "scripting/ejs/smbcalls.h" #include "lib/ejs/ejs.h" #include "librpc/gen_ndr/ndr_echo.h" #include "lib/cmdline/popt_common.h" @@ -83,7 +84,7 @@ static int ejs_rpc_connect(MprVarHandle eid, int argc, struct MprVar **argv) mprSetPtr(conn, "iface", iface); done: - ejsSetReturnValue(eid, mprNTSTATUS(status)); + mpr_Return(eid, mprNTSTATUS(status)); return 0; } @@ -177,7 +178,7 @@ done: done: talloc_free(ejs); - ejsSetReturnValue(eid, mprNTSTATUS(status)); + mpr_Return(eid, mprNTSTATUS(status)); if (NT_STATUS_EQUAL(status, NT_STATUS_INTERNAL_ERROR)) { return -1; } |