mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-20 12:45:50 +00:00
Close connection in Get method
This commit is contained in:
committed by
Victor Vieux
parent
21161dbd51
commit
7072d2aaca
@@ -166,6 +166,8 @@ func (db *Database) Get(name string) *Entity {
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
e, err := db.get(conn, name)
|
||||
if err != nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user