Remove redundant nullptr checks on delete and free calls.