server: Remove redundant NULL check before free() (found by Smatch).