Remove useless if's around free() calls.