Fixing crash when a library's dependency could not be loaded.
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
1 parent
2e2538ccb8
commit
14bc1f6526
1 file changed
-2
@@ -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);
|
nerrors += load_library(jq, lib_path, &dep_def_block, lib_state);
|
||||||
if (nerrors == 0)
|
if (nerrors == 0)
|
||||||
bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, jv_string_value(as));
|
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);
|
jv_free(as);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user