Skip to content

Commit 7237d9b

Browse files
committed
Fix unclosed database conn
1 parent 0a2e222 commit 7237d9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
424424
if err != nil {
425425
return xerrors.Errorf("scan version: %w", err)
426426
}
427+
_ = version.Close()
427428
versionStr = strings.Split(versionStr, " ")[0]
428429
if semver.Compare("v"+versionStr, "v13") < 0 {
429430
return xerrors.New("PostgreSQL version must be v13.0.0 or higher!")

0 commit comments

Comments
 (0)