Repository: trafficserver Updated Branches: refs/heads/5.2.x 0be68b86f -> d0323f409
TS-3261: Fix SSL BIO memory leak issue introduced in TS-3006 Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/439c5314 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/439c5314 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/439c5314 Branch: refs/heads/5.2.x Commit: 439c531452c78e4857a97ea710960b361eac33c4 Parents: 0be68b8 Author: Leif Hedstrom <zw...@apache.org> Authored: Tue Dec 30 17:51:02 2014 -0700 Committer: Leif Hedstrom <zw...@apache.org> Committed: Tue Dec 30 17:51:02 2014 -0700 ---------------------------------------------------------------------- iocore/net/SSLInternal.cc | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/439c5314/iocore/net/SSLInternal.cc ---------------------------------------------------------------------- diff --git a/iocore/net/SSLInternal.cc b/iocore/net/SSLInternal.cc index d2c96fe..b6d657a 100644 --- a/iocore/net/SSLInternal.cc +++ b/iocore/net/SSLInternal.cc @@ -32,5 +32,8 @@ void SSL_set_rbio(SSLNetVConnection *sslvc, BIO *rbio) { + if (sslvc->ssl->rbio != NULL) { + BIO_free(sslvc->ssl->rbio); + } sslvc->ssl->rbio = rbio; }