diff --git a/test/bio_tfo_test.c b/test/bio_tfo_test.c index e91c32bd32..43057e0133 100644 --- a/test/bio_tfo_test.c +++ b/test/bio_tfo_test.c @@ -400,6 +400,8 @@ err: if (errstr != NULL) BIO_printf(bio_err, "last errno: %d=%s\n", sockerr, errstr); } + if (ai != NULL) + freeaddrinfo(ai); BIO_ADDR_free(baddr); BIO_closesocket(cfd); BIO_closesocket(sfd);