Closed elfring closed 10 years ago
sure
the pointer check is removed from str_array_free. fe5c238
the pointer check is required in r3_tree_free
because not every field is used in each node.
The function "zfree" performs input parameter validation in its implementation so that you do not need to repeat corresponding checks before calling such a function by "r3_tree_free". (The field usage does not matter in this use case.)
Oh! that makes sense, thanks!
I added those for debugging and forgot to remove them :/
I just cleaned up
Thanks for your small source code improvement.
An extra null pointer check is not needed in functions like the following.
Would you like to apply a semantic patch like the following to find more update candidates?