Fix coverity deadcode
@@ -454,8 +454,10 @@ int DTLSv1_listen(SSL *ssl, BIO_ADDR *client)
if (buf == NULL)
return -1;
wbuf = OPENSSL_malloc(DTLS1_RT_HEADER_LENGTH + SSL3_RT_MAX_PLAIN_LENGTH);
- if (buf == NULL)
+ if (wbuf == NULL) {
+ OPENSSL_free(buf);
return -1;
+ }
do {
/* Get a packet */
