Details
-
Improvement
-
Resolution: Done
-
Trivial - P5
-
None
-
None
-
None
-
latest from git, Fedora 14, x86_64
-
Fully Compatible
Description
There is no reason to ensure P is non-NULL before calling "free(P)".
(unless you still target SunOS4 ![]()
- src/gridfs.c (gridfs_destroy): Remove 4 unneeded tests.
There is no longer (since SunOS 4) any need to guard against
free (NULL), so replace each "if (p) free (p);" with "free (p);".
Patch attached: