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:
parent
292871c4bc
commit
2cd0793578
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ bool read_items(FILE* fp, char entry_separator, Function<Decision(StringView)> c
|
|||
perror("getdelim");
|
||||
fail = true;
|
||||
}
|
||||
free(item);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue