fixed leaking info, plus go fmt

This commit is contained in:
sm
2013-03-06 13:31:30 -07:00
parent fe0411e8df
commit 6a62e10c26
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ func check_password(filename, attempt string) (result bool) {
}
func loadChildren(filename string) (children []Child) {
dbMutex.RLock()
defer dbMutex.RUnlock()
dbMutex.RLock()
defer dbMutex.RUnlock()
b, err := ioutil.ReadFile(filename)
if err != nil {
log.Fatal(err)