summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-20 22:59:49 -0400
committermidipix <writeonce@midipix.org>2016-05-20 23:01:36 -0400
commite49ee9a45bed57d972f2e6d6107fc6ee49a0e4a3 (patch)
treeda957f9ad7a1b3590bd2f98f749d020ce69936f0 /src
parent6668d8575a1a95fee1e056dffeb63d7f4e8a5f22 (diff)
downloadslibtool-e49ee9a45bed57d972f2e6d6107fc6ee49a0e4a3.tar.bz2
slibtool-e49ee9a45bed57d972f2e6d6107fc6ee49a0e4a3.tar.xz
slbt_exec_link_create_dep_file(): add missing fclose() calls for fdeps.
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)