mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03: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
@ -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 New Issue
Block a user