github-vet / github-vet/rangeloop-pointer-findings
ibmendoza/project-iris: iris/proto/iris/connection.go; 7 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [ibmendoza/project-iris](https://www.github.com/ibmendoza/project-iris) at [iris/proto/iris/connection.go](https://github.com/ibmendoza/project-iris/blob/0686b5ece2b74e2a3bf0b23c79476c2a8e28c1a3/iris/proto/iris/connection.go#L295-L301)
Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.
> range-loop variable tun used in defer or goroutine at line 299
[Click here to see the code in its original context.](https://github.com/ibmendoza/project-iris/blob/0686b5ece2b74e2a3bf0b23c79476c2a8e28c1a3/iris/proto/iris/connection.go#L295-L301)
Click here to show the 7 line(s) of Go which triggered the analyzer.
```go
for _, tun := range c.tunLive {
closing.Add(1)
go func() {
defer closing.Done()
tun.Close()
}()
}
```
Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.
commit ID: 0686b5ece2b74e2a3bf0b23c79476c2a8e28c1a3
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.