scan-build fixes
I've been having problems with graphviz not working consistently, so I decided to run scan-build over the codebase and it found a lot of errors.
I've been having problems with graphviz not working consistently, so I decided to run scan-build over the codebase and it found a lot of errors.