diff --git a/src/nvm/arch/arch.go b/src/nvm/arch/arch.go index 2738c18a..f93bc217 100644 --- a/src/nvm/arch/arch.go +++ b/src/nvm/arch/arch.go @@ -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