<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Am 08.03.2018 09:44 schrieb "Ryan Joseph" <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">2) We need to remember to call Free() at the end of the function and take precaution to not exit early and leak memory (maybe even using a goto to break out of nested loops or nested functions, who knows).</div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">You are supposed to use try...finally for this. The finally-block is always executed when the try-block is left no matter if it's by reaching the end, calling exit or by an exception. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"></div></div>