Merge pull request #253 from jeffrson/master

Make sure file handle to 'node.exe' is closed after scanning for bytes
This commit is contained in:
Corey Butler
2018-08-11 20:07:40 -05:00
committed by GitHub

View File

@@ -22,6 +22,9 @@ func SearchBytesInFile( path string, match string, limit int) bool {
return false;
}
// Close file upon return
defer file.Close()
// Allocate 1 byte array to perform the match
bit := make([]byte, 1);
j := 0