Fix memory leak
This commit is contained in:
1 parent
45f126514c
commit
a03ae02f44
1 file changed
+2
-1
+2
-1
@@ -1100,7 +1100,8 @@ int jq_compile_args(jq_state *jq, const char* str, jv args) {
|
||||
if (nerrors == 0) {
|
||||
nerrors = block_compile(program, &jq->bc, locations, args = args2obj(args));
|
||||
}
|
||||
}
|
||||
} else
|
||||
jv_free(args);
|
||||
if (nerrors)
|
||||
jq_report_error(jq, jv_string_fmt("jq: %d compile %s", nerrors, nerrors > 1 ? "errors" : "error"));
|
||||
if (jq->bc)
|
||||
|
||||
Reference in new issue
Block a user