From 248dce258e39713ffb171c395ff331ae1df56c72 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 21 Apr 2017 13:33:00 -0600 Subject: [PATCH] update dynamic type when freeing bio mem --- src/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bio.c b/src/bio.c index cc171291c..574e6c8a3 100644 --- a/src/bio.c +++ b/src/bio.c @@ -966,7 +966,7 @@ int wolfSSL_BIO_reset(WOLFSSL_BIO *bio) bio->rdIdx = 0; bio->wrIdx = 0; bio->wrSz = 0; - XFREE(bio->mem, bio->heap, DYNAMIC_TYPE_BIO); + XFREE(bio->mem, bio->heap, DYNAMIC_TYPE_OPENSSL); bio->mem = NULL; bio->memLen = 0; if (bio->mem_buf != NULL) {