Free up s->d1->buffered_app_data.q properly.
PR#3286
This commit is contained in:
parent
030a3f9527
commit
470990fee0
@ -202,9 +202,12 @@ static void dtls1_clear_queues(SSL *s)
|
|||||||
|
|
||||||
while ( (item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL)
|
while ( (item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL)
|
||||||
{
|
{
|
||||||
frag = (hm_fragment *)item->data;
|
rdata = (DTLS1_RECORD_DATA *) item->data;
|
||||||
OPENSSL_free(frag->fragment);
|
if (rdata->rbuf.buf)
|
||||||
OPENSSL_free(frag);
|
{
|
||||||
|
OPENSSL_free(rdata->rbuf.buf);
|
||||||
|
}
|
||||||
|
OPENSSL_free(item->data);
|
||||||
pitem_free(item);
|
pitem_free(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user