diff options
author | midipix <writeonce@midipix.org> | 2016-05-20 22:59:49 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-20 23:01:36 -0400 |
commit | e49ee9a45bed57d972f2e6d6107fc6ee49a0e4a3 (patch) | |
tree | da957f9ad7a1b3590bd2f98f749d020ce69936f0 /src | |
parent | 6668d8575a1a95fee1e056dffeb63d7f4e8a5f22 (diff) | |
download | slibtool-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.c | 6 |
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) |