From 2cd0793578dad27a9f6ff94d55d5061ce5483817 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Wed, 10 Mar 2021 19:44:51 +0100 Subject: [PATCH] xargs: Fix boring memory leak It's only 1K (BUFSIZ), and it's immediately before xargs finishes anyway. However, I ran into it and know how to fix it, so let's clean this up. --- Userland/Utilities/xargs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Utilities/xargs.cpp b/Userland/Utilities/xargs.cpp index 68e4eb54e35..8bb7efaaa85 100644 --- a/Userland/Utilities/xargs.cpp +++ b/Userland/Utilities/xargs.cpp @@ -198,6 +198,7 @@ bool read_items(FILE* fp, char entry_separator, Function c perror("getdelim"); fail = true; } + free(item); break; }