clang static analysis script
fixed a minor memory leak