diff options
author | midipix <writeonce@midipix.org> | 2016-04-19 20:24:42 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-19 20:24:42 -0400 |
commit | 085f3a854b316e33747812e93d18a98238828ea8 (patch) | |
tree | 1fefe7d9134e615455c6f74f42d283ec8332961c /src/logic | |
parent | 51b7dfc891504bbec7d7682fa15858ef0c5b4f4e (diff) | |
download | slibtool-085f3a854b316e33747812e93d18a98238828ea8.tar.bz2 slibtool-085f3a854b316e33747812e93d18a98238828ea8.tar.xz |
slbt_get_deps_meta(): free the dependency list buffer as needed.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_link.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 6f1e4a1..32731b3 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -110,6 +110,9 @@ static int slbt_get_deps_meta( while (fscanf(fdeps,"%s\n",deplibs) == 1) depsmeta->depscnt++; + if (deplibs != depfile) + free(deplibs); + ret = ferror(fdeps) ? -1 : 0; fclose(fdeps); |