rapid7/metasploit-framework — pull request #2242 by wchen-r7 (2013-08-18 22:41:28+00:00)
Title: [FixRM #8312] Fix file handle leaks

When file.open() is used, module must make sure it's closed, otherwise as long as you have the console running, you are leaking.

See:
http://dev.metasploit.com/redmine/issues/8311