1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-14 12:23:52 +03:00

r19048: ensure our memory gets cleaned up even upon exception

This commit is contained in:
Derrell Lipman
2006-10-02 15:23:03 +00:00
committed by Gerald (Jerry) Carter
parent c8070c38f2
commit bcf5e98a8c

View File

@@ -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;