mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
wc: Remove a memory leak.
This commit is contained in:
parent
dcd259a100
commit
9dc44bf8c4
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…
Add table
Add a link
Reference in a new issue