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:
Daniel Thayer 2016-08-31 16:30:10 -05:00
parent b3a7d07e66
commit 520ed43eae

View file

@ -90,7 +90,10 @@ static ino_t get_inode_num(const string& path)
if ( ! f ) if ( ! f )
reporter->FatalError("failed to open %s\n", path.c_str()); 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 { class FileInfo {