2 ms·
Yes, the Linux kernel has used this error handling strategy for a long time (http://kerneltrap.org/node/553/2131 http://kerneltrap.org/node/553/2131). A varian
by haberman 15y ago
Yes, the Linux kernel has used this error handling strategy for a long time (http://kerneltrap.org/node/553/2131 http://kerneltrap.org/node/553/2131). A variant on this is to have multiple error labels so that you uninitialize the correct set of things without the if statements (which may not be possible in cases where the resource is represented by an opaque handle).