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
+2
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