Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Free up s->d1->buffered_app_data.q properly.
PR#3286
  • Loading branch information
zhu qun-ying authored and snhenson committed Jun 2, 2014
1 parent 030a3f9 commit 470990f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ssl/d1_lib.c
Expand Up @@ -202,9 +202,12 @@ static void dtls1_clear_queues(SSL *s)

while ( (item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL)
{
frag = (hm_fragment *)item->data;
OPENSSL_free(frag->fragment);
OPENSSL_free(frag);
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf)
{
OPENSSL_free(rdata->rbuf.buf);
}
OPENSSL_free(item->data);
pitem_free(item);
}
}
Expand Down

0 comments on commit 470990f

Please sign in to comment.