mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Added another missing fclose in scan.l
If someone uses an "@unload" directive in a bro script, then Bro was neglecting to close the file.
This commit is contained in:
parent
b3a7d07e66
commit
520ed43eae
1 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,10 @@ static ino_t get_inode_num(const string& path)
|
|||
if ( ! f )
|
||||
reporter->FatalError("failed to open %s\n", path.c_str());
|
||||
|
||||
return get_inode_num(f, path);
|
||||
ino_t inum = get_inode_num(f, path);
|
||||
fclose(f);
|
||||
|
||||
return inum;
|
||||
}
|
||||
|
||||
class FileInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue