Closed Bug 472947 Opened 17 years ago Closed 1 year ago

Null-checks before free() are pointless

Categories

(Core :: General, defect)

defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: Waldo, Unassigned)

Details

C99 clearly states that if the pointer passed in is NULL nothing happens; C++ defers to ISO C (C89?), whose spec I don't have, but it's all but certainly the same behavior there. I'm sure it gets optimized out, but the extra visual noise doesn't help with readability.
Severity: trivial → S4

no activity for a while and no comment, closing.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.