mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
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 9c885a7edb
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1e5b309b4f
commit
60ec75cbc7
@ -25,6 +25,7 @@
|
||||
#include "lib/cmdline/popt_common.h"
|
||||
#include "dynconfig.h"
|
||||
#include "lib/ejs/ejs.h"
|
||||
#include "scripting/ejs/smbcalls.h"
|
||||
|
||||
void ejs_exception(const char *reason)
|
||||
{
|
||||
@ -97,7 +98,7 @@ void ejs_exception(const char *reason)
|
||||
talloc_steal(mem_ctx, argv_list);
|
||||
v = mprList("ARGV", argv_list);
|
||||
mprSetPropertyValue(&v, "length", mprCreateIntegerVar(i-1));
|
||||
mprCreateProperty(ejsGetGlobalObject(eid), "ARGV", &v);
|
||||
mprSetVar(ejsGetGlobalObject(eid), "ARGV", v);
|
||||
|
||||
/* load the script and advance past interpreter line*/
|
||||
script = file_load(fname, &script_size, mem_ctx);
|
||||
|
Reference in New Issue
Block a user