summaryrefslogtreecommitdiffstats
path: root/linker.c
diff options
context:
space:
mode:
authorWilliam Langford <wlangfor@gmail.com>2014-07-23 03:33:04 -0400
committerNicolas Williams <nico@cryptonector.com>2014-07-27 17:51:48 -0500
commit14bc1f652600892328ef0de58d09d99b6857f7ac (patch)
tree5335372d14ed660e03a393be99513be20d1cec6f /linker.c
parent2e2538ccb85a39bfe6364d2e7a863e04d6ece9c5 (diff)
Fixing crash when a library's dependency could not be loaded.
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
Diffstat (limited to 'linker.c')
-rw-r--r--linker.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/linker.c b/linker.c
index 5fc58393..959b373d 100644
--- a/linker.c
+++ b/linker.c
@@ -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);
}