Project

General

Profile

Actions

Optimization #1313

open
KS CT

All Free functions should correctly handle NULL pointers

Optimization #1313: All Free functions should correctly handle NULL pointers

Added by Ken Steele over 11 years ago. Updated 3 months ago.

Status:
Feedback
Priority:
Normal
Target version:
Effort:
medium
Difficulty:
low
Label:

Description

All memory free functions should properly handle NULL pointers (including SCFree). Then all the NULL checks before calling the free functions can be removed, making the code simpler.

By default free() function can handle a null pointer.

Actions

Also available in: PDF Atom