aboutsummaryrefslogtreecommitdiff
path: root/toys/which.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/which.c')
-rw-r--r--toys/which.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/which.c b/toys/which.c
index 0ffc725a..4923859c 100644
--- a/toys/which.c
+++ b/toys/which.c
@@ -53,7 +53,7 @@ static int which_in_path(char *filename)
puts(list->str);
// If we should stop at one match, do so
if (!toys.optflags) {
- llist_free(list, NULL);
+ llist_traverse(list, free);
break;
}
}