Closed
Bug 472947
Opened 17 years ago
Closed 1 year ago
Null-checks before free() are pointless
Categories
(Core :: General, defect)
Core
General
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.
Updated•3 years ago
|
Severity: trivial → S4
Comment 1•1 year ago
|
||
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.
Description
•