free NULL cleanup -- coda
After the finale, the "real" final part. :) Do a recursive grep with "-B1 -w [a-zA-Z0-9_]*_free" to see if any of the preceeding lines are an "if NULL" check that can be removed. Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
@@ -82,9 +82,6 @@ pitem *pitem_new(unsigned char *prio64be, void *data)
|
||||
|
||||
void pitem_free(pitem *item)
|
||||
{
|
||||
if (item == NULL)
|
||||
return;
|
||||
|
||||
OPENSSL_free(item);
|
||||
}
|
||||
|
||||
@@ -100,9 +97,6 @@ pqueue_s *pqueue_new()
|
||||
|
||||
void pqueue_free(pqueue_s *pq)
|
||||
{
|
||||
if (pq == NULL)
|
||||
return;
|
||||
|
||||
OPENSSL_free(pq);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user