summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 6f1bb33..9e88420 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -495,11 +495,15 @@ static int slbt_exec_link_create_dep_file(
return -1;
for (deplib=fgets(deplibs,st.st_size+1,fdeps); deplib; ) {
- if (fprintf(ectx->fdeps,"%s",deplib) < 0)
+ if (fprintf(ectx->fdeps,"%s",deplib) < 0) {
+ fclose(fdeps);
return -1;
+ }
deplib = fgets(deplibs,st.st_size+1,fdeps);
}
+
+ fclose(fdeps);
}
if (plib)