tools: Remove redundant NULL checks before free() (found by Smatch).
6 files changed