mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-22 15:37:59 +00:00
memory management
This commit is contained in:
parent
b8c08dc4c9
commit
d978ba5188
1 changed files with 5 additions and 3 deletions
|
|
@ -46,9 +46,11 @@ static void rxval_evaluator_variadic_free(rxval_evaluator_t* pxevaluator) {
|
|||
pstate->pargs[i]->pfree_func(pstate->pargs[i]);
|
||||
free(pstate->pargs);
|
||||
|
||||
// xxx check ephemeral ...
|
||||
for (int i = 0; i < pstate->nargs; i++)
|
||||
mlhmmv_xvalue_free(&pstate->pbxvals[i].xval);
|
||||
for (int i = 0; i < pstate->nargs; i++) {
|
||||
if (pstate->pbxvals[i].is_ephemeral) {
|
||||
mlhmmv_xvalue_free(&pstate->pbxvals[i].xval);
|
||||
}
|
||||
}
|
||||
free(pstate->pbxvals);
|
||||
|
||||
free(pstate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue