Skip to content

Commit 9d30201

Browse files
committed
cli: close repository iterator after listing repos
Signed-off-by: Javi Fontan <[email protected]>
1 parent 8ea687a commit 9d30201

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/gitbase/command/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ func (c *Server) addDirectories() error {
294294
if err != nil {
295295
return err
296296
}
297+
defer repos.Close()
297298

298299
return repos.ForEach(func(r borges.Repository) error {
299300
id := r.ID().String()

0 commit comments

Comments
 (0)