On Sun, Apr 7, 2013 at 2:36 PM, John Keeping <john at keeping.me.uk> wrote: > free Any opinions on using gcc's __attribute__((cleanup))? It could make things a bit cleaner, but it's something of an awful gcc hack. #define strbuf_auto struct strbuf __attribute__((cleanup(strbuf_release))