go-mail/smtp
Winni Neessen 13d0add21c
#121: Remove defer from for loops
Fixes #121. `defer` in for loops can possibly lead to leaks.

The whole handling including the defer are now moved into anonymous functions outside the for loop and are called form the loop instead. This way the defer is handle when the inline function finishes
2023-03-15 18:42:25 +01:00
..
auth.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
auth_cram_md5.go Re-introduce backwards compatibility with Go 1.17 and Go 1.18 2023-01-13 17:34:41 +01:00
auth_cram_md5_118.go Added backport comments as reference 2023-01-13 17:42:05 +01:00
auth_login.go Switched copyright header from me to "The go-mail Authors" 2023-01-15 16:14:19 +01:00
auth_plain.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
example_test.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
LICENSE Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
smtp.go #119 make golangci-lint happy again 2023-03-11 10:48:14 +01:00
smtp_ehlo.go Re-introduce backwards compatibility with Go 1.17 and Go 1.18 2023-01-13 17:34:41 +01:00
smtp_ehlo_117.go Added backport comments as reference 2023-01-13 17:42:05 +01:00
smtp_test.go #121: Remove defer from for loops 2023-03-15 18:42:25 +01:00