summaryrefslogtreecommitdiffstats
path: root/ssl/d1_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-11-25 13:36:00 +0000
committerMatt Caswell <matt@openssl.org>2014-11-26 10:10:21 +0000
commit8a35dbb6d89a16d792b79b157b3e89443639ec94 (patch)
treef226d18d416a24cd49f9d190d02f6f608da2bdf3 /ssl/d1_lib.c
parent3a0765882c4b3b67960b7efb203570764dd4ed29 (diff)
Fixed memory leak due to incorrect freeing of DTLS reassembly bit mask
PR#3608 Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r--ssl/d1_lib.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index 5f7a3582cc..ab8730c883 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -187,16 +187,14 @@ static void dtls1_clear_queues(SSL *s)
while( (item = pqueue_pop(s->d1->buffered_messages)) != NULL)
{
frag = (hm_fragment *)item->data;
- OPENSSL_free(frag->fragment);
- OPENSSL_free(frag);
+ dtls1_hm_fragment_free(frag);
pitem_free(item);
}
while ( (item = pqueue_pop(s->d1->sent_messages)) != NULL)
{
frag = (hm_fragment *)item->data;
- OPENSSL_free(frag->fragment);
- OPENSSL_free(frag);
+ dtls1_hm_fragment_free(frag);
pitem_free(item);
}