From 50abd211c4a2c66748d4e7dc2afcb202b5f529b1 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 8 Dec 2020 22:16:55 +0000 Subject: Revert "ustream-ssl: openssl: fix bio memory leak" This reverts commit 1651a795864e7a8741cb56e7ddd2208070f2cf47. It doesn't actually compile. Signed-off-by: Daniel Golle --- openssl_bio_compat.h | 7 ------- ustream-io-openssl.c | 1 - 2 files changed, 8 deletions(-) diff --git a/openssl_bio_compat.h b/openssl_bio_compat.h index 39a0455..9355c86 100644 --- a/openssl_bio_compat.h +++ b/openssl_bio_compat.h @@ -28,13 +28,6 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name) return bm; } -static inline void BIO_meth_free(BIO_METHOD *bm) -{ - if (bm != NULL) { - free(bm); - } -} - #endif /* OPENSSL_VERSION_NUMBER */ #endif /* OPENSSL_BIO_COMPAT_H */ diff --git a/ustream-io-openssl.c b/ustream-io-openssl.c index c9d7fae..606ed4a 100644 --- a/ustream-io-openssl.c +++ b/ustream-io-openssl.c @@ -42,7 +42,6 @@ s_ustream_free(BIO *b) BIO_set_data(b, NULL); BIO_set_init(b, 0); BIO_clear_flags(b, ~0); - BIO_meth_free(b->method); return 1; } -- cgit v1.2.1