[CDRIVER-42] remove unnecessary test: if (p) free (p); -> free (p); Created: 17/Feb/11 Updated: 19/Oct/16 Resolved: 08/Apr/11 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 0.2 |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Jim Meyering | Assignee: | Kyle Banker |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
latest from git, Fedora 14, x86_64 |
||
| Attachments: |
|
| Backwards Compatibility: | Fully Compatible |
| Description |
|
There is no reason to ensure P is non-NULL before calling "free(P)".
Patch attached: |