Permalink
Browse files

close directory after reading config files

Change-Id: I66caf737325937298b03596767ab66cea478de4c
  • Loading branch information...
1 parent 792a82b commit 9244ee3ece2e1b18de1d0f245dd9919dca1ec13c @dougm dougm committed Sep 5, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 configmanager.go
View
@@ -150,6 +150,7 @@ func (c *ConfigManager) parseDir(dirPath string) error {
if err != nil {
return err
}
+ defer dir.Close()
dirNames, err := dir.Readdirnames(-1)
if err != nil {

0 comments on commit 9244ee3

Please sign in to comment.