rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.24k stars 280 forks source link

Close the file when finished parsing them #160

Closed dixonwille closed 4 years ago

dixonwille commented 4 years ago

I noticed that the file was staying open even when parsing it for its information was finished. This should help save some memory and hitting any kernel limits that may exist by the OS.

rubenv commented 4 years ago

Good catch, thanks!