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:
@@ -153,10 +153,8 @@ int dtls1_new(SSL *s)
|
||||
d1->mtu = 0;
|
||||
|
||||
if (!d1->buffered_messages || !d1->sent_messages) {
|
||||
if (d1->buffered_messages)
|
||||
pqueue_free(d1->buffered_messages);
|
||||
if (d1->sent_messages)
|
||||
pqueue_free(d1->sent_messages);
|
||||
pqueue_free(d1->buffered_messages);
|
||||
pqueue_free(d1->sent_messages);
|
||||
OPENSSL_free(d1);
|
||||
ssl3_free(s);
|
||||
return (0);
|
||||
|
Reference in New Issue
Block a user