summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tsort.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tsort.c b/src/tsort.c
index 4f51f3074..0179a4e76 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -487,6 +487,11 @@ tsort (const char *file)
/* T5. Output front of queue. */
puts (head->str);
+#ifdef lint
+ /* suppress valgrind "definitely lost" warnings. */
+ void *head_str = (void *) head->str;
+ free (head_str);
+#endif
head->str = NULL; /* Avoid printing the same string twice. */
n_strings--;