1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fixing crash when a library's dependency could not be loaded.

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
William Langford
2014-07-23 03:33:04 -04:00
committed by Nicolas Williams
parent 2e2538ccb8
commit 14bc1f6526

View File

@ -128,8 +128,6 @@ static int process_dependencies(jq_state *jq, jv lib_origin, block *src_block, s
nerrors += load_library(jq, lib_path, &dep_def_block, lib_state);
if (nerrors == 0)
bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, jv_string_value(as));
else
block_free(dep_def_block);
}
jv_free(as);
}