Do not free p if it hasn't been used yet.