Browse Source

bearer: close open jwt key files

pull/2131/head
Shivaram Lingamneni 2 months ago
parent
commit
7afd6dbc74
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      irc/jwt/bearer.go

+ 1
- 0
irc/jwt/bearer.go View File

112
 		if err != nil {
112
 		if err != nil {
113
 			return nil, err
113
 			return nil, err
114
 		}
114
 		}
115
+		defer o.Close()
115
 		return io.ReadAll(o)
116
 		return io.ReadAll(o)
116
 	}
117
 	}
117
 	if j.KeyString != "" {
118
 	if j.KeyString != "" {

Loading…
Cancel
Save