mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
wc: Remove a memory leak.
This commit is contained in:
parent
dcd259a100
commit
9dc44bf8c4
Notes:
sideshowbarker
2024-07-18 23:54:28 +09:00
Author: https://github.com/emanuele6 Commit: https://github.com/SerenityOS/serenity/commit/9dc44bf8c42 Pull-request: https://github.com/SerenityOS/serenity/pull/4913 Reviewed-by: https://github.com/awesomekling
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ static Count get_count(const String& file_specifier)
|
|||
count.words++;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_pointer != stdin)
|
||||
fclose(file_pointer);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue