Skip to content
Myr

Fix memory leak

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nicolas Williams · committed by Nicolas Williams · parent 45f1265 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/execute.c+2 added-1 removed
1098 unmodified lines
1099 nerrors = builtins_bind(jq, &program);1100 if (nerrors == 0) {1101 nerrors = block_compile(program, &jq->bc, locations, args = args2obj(args));1102 }1103 }1103 } else1104 jv_free(args);1105 if (nerrors)1106 jq_report_error(jq, jv_string_fmt("jq: %d compile %s", nerrors, nerrors > 1 ? "errors" : "error"));1107 if (jq->bc)1108 jq->bc = optimize(jq->bc);
57 unmodified lines