|
|
Subscribe / Log in / New account

Re: in general one might have to do things in an error branch that one might not have to do during normal flow

Re: in general one might have to do things in an error branch that one might not have to do during normal flow

Posted Dec 30, 2014 20:53 UTC (Tue) by ldo (guest, #40946)
In reply to: Re: Please, no knee-jerk "no goto ever" reactions by anselm
Parent article: The "too small to fail" memory-allocation rule

I believe this is another instance of the “cleanup” versus “rollback” argument made elsewhere. See my comments about idempotency of deallocation routines and NULLing subsumed pointers.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds