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:
parent
21161dbd51
commit
7072d2aaca
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue