From 91814f4b00b7088cde5c610a7e2b60d4496662b2 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Mon, 2 Oct 2006 15:23:03 +0000 Subject: r19048: ensure our memory gets cleaned up even upon exception (This used to be commit bcf5e98a8c83791db93a9024b3433f9d5ee3cc7e) --- source4/scripting/ejs/literal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/ejs/literal.c') diff --git a/source4/scripting/ejs/literal.c b/source4/scripting/ejs/literal.c index f7168e2c4e..4eeb35c423 100644 --- a/source4/scripting/ejs/literal.c +++ b/source4/scripting/ejs/literal.c @@ -92,7 +92,7 @@ int literal_to_var(int eid, int argc, char **argv) tok.source = argv[0]; tok.pos = 0; - tok.ctx = talloc_new(NULL); + tok.ctx = talloc_new(mprMemCtx()); if (tok.ctx == NULL) { mpr_Return(eid, mprCreateUndefinedVar()); return 0; -- cgit