================================================ CPW Pt. 10: Detecting Memory Leaks with valgrind [TOC] ================================================ ---- VIDEO ------------------------------ https://www.youtube.com/embed/1brLBTiexWo ----------------------------------------- Access to _heim_ ================ We only allow IPs the belong to our network to login on _heim_. For accessing _heim_ from at home first login on _theon_ with _ssh_. From there access _heim_ with _ssh heim_. Exercise ======== Update all test programs so that _finalize()_ or _finalizeExit()_ gets called before the program terminates. Work Left To Do =============== In case of a syntax error we terminate the calculator. Calling _finalizeExit()_ will cleanup some of the allocated memory but in general not all. All the expression nodes that were allocated in the parser will not be freed. We will fix this problem later. In the next session we will first make some modifications to how memory for expression nodes gets managed at all. Using a so called __region-based memory management__ will gives us more flexibility and allows to solve the problem in a simple way. :links: region-based memory management -> https://en.wikipedia.org/wiki/Region-based_memory_management