Comment by scott_s
12 years ago
The goto cleanup pattern is a good one. It's important to know why certain constructs are frowned upon. That pattern is not one of them.
Look at the Linux kernel; it's used extensively. For example: http://lxr.free-electrons.com/source/kernel/fork.c?v=3.3#L42...
No comments yet
Contribute on Hacker News ↗