Fixed up leak check code to actually get leaks and not other symbols