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:
committed by
Gerald (Jerry) Carter
parent
c8070c38f2
commit
bcf5e98a8c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user