LINUX/X11 - set freed variables to NULL that are required for checking