Go

Go

Made by DeepSource

Defers in infinite loops will never execute SCC-SA5003

Bug risk
Major

Defers are scoped to the surrounding function, not the surrounding block. In a function that never returns, i.e. one containing an infinite loop, defers will never execute.