Closed stream in store.go Active()

Signed-off-by: chchliang <chen.chuanliang@zte.com.cn>
This commit is contained in:
chchliang 2017-03-15 16:53:30 +08:00
parent a85c28d248
commit 4465e493fc
1 changed files with 2 additions and 0 deletions

View File

@ -311,6 +311,8 @@ func (s *Store) Active() ([]Status, error) {
return nil, err
}
defer fp.Close()
fis, err := fp.Readdir(-1)
if err != nil {
return nil, err