logoalt Hacker News

ueckeryesterday at 9:14 AM1 replyview on HN

I do not see how defer would have helped in this case.


Replies

Davidbrczyesterday at 10:09 AM

People manually doing resource cleanup by using goto.

I'm assuming that using defer would have prevented the gotos in the first case, and the bug.

show 3 replies