|
|
Author: derrell
Date: 2006-10-02 15:23:03 +0000 (Mon, 02 Oct 2006)
New Revision: 19048
WebSVN:
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19048
Log:
ensure our memory gets cleaned up even upon exception
Modified:
branches/SAMBA_4_0/source/scripting/ejs/literal.c
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/literal.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/literal.c 2006-10-02 14:06:04 UTC
(rev 19047)
+++ branches/SAMBA_4_0/source/scripting/ejs/literal.c 2006-10-02 15:23:03 UTC
(rev 19048)
@@ -92,7 +92,7 @@
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;
|
|