generated function, and add a label `fail' that the code jumps to in case of errors that frees all allocated data git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9667 ec53bebd-3082-4978-b11e-865c3cabbd6b