1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 11:18:13 +00:00

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.
This commit is contained in:
Ben Wiederhake 2021-03-10 19:44:51 +01:00 committed by Andreas Kling
parent 292871c4bc
commit 2cd0793578

View file

@ -198,6 +198,7 @@ bool read_items(FILE* fp, char entry_separator, Function<Decision(StringView)> c
perror("getdelim");
fail = true;
}
free(item);
break;
}