Coding style

Colin Walters walters at verbum.org
Fri Nov 8 13:26:49 UTC 2013


On Fri, 2013-11-08 at 10:37 +0200, Marius Vollmer wrote:

> But using "gs_free" is still better IMO because the return value is much
> more explicit.  In a sense, with "gs_free" the compiler is doing the
> transformation to "goto out"-style for us, which ought to be a good
> thing.

Yeah, I'm pretty strongly of the opinion that it's a good thing.  It's
also heavily used by systemd now, among other projects.

It's not like garbage collection or something, the free() calls are
still predictable and reliable.




More information about the cockpit-devel mailing list