From 8f3e8663b3cf57c0b62d939d6953fbfcc112aadd Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Wed, 29 Mar 2017 16:23:18 +0300 Subject: [PATCH] Delete underlying ssecurity in SSecurityVeNCrypt. Otherwise it gets leaked which would allow even not authenticated clients to exhaust server memory. --- common/rfb/SSecurityVeNCrypt.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/rfb/SSecurityVeNCrypt.cxx b/common/rfb/SSecurityVeNCrypt.cxx index 7c137498..ce6c71ba 100644 --- a/common/rfb/SSecurityVeNCrypt.cxx +++ b/common/rfb/SSecurityVeNCrypt.cxx @@ -55,6 +55,8 @@ SSecurityVeNCrypt::SSecurityVeNCrypt(SecurityServer *sec) : security(sec) SSecurityVeNCrypt::~SSecurityVeNCrypt() { + delete ssecurity; + if (subTypes) { delete [] subTypes; subTypes = NULL; -- 2.39.5