fix small free/delete mismatch / a warning