summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_link.c3
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);