1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Close connection in Get method

This commit is contained in:
Michael Crosby 2013-10-22 14:54:04 -07:00 committed by Victor Vieux
parent 21161dbd51
commit 7072d2aaca

View file

@ -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