diff -r a708b65baeb9 -r ee112eb69d2a mercurial/ui.py --- a/mercurial/ui.py Tue Nov 01 15:37:00 2011 -0500 +++ b/mercurial/ui.py Thu Nov 03 11:24:55 2011 -0500 @@ -79,6 +79,7 @@ try: cfg.read(filename, fp, sections=sections, remap=remap) + fp.close() except error.ConfigError, inst: if trusted: raise