aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Srb <michalsrb@gmail.com>2017-03-29 16:23:18 +0300
committerMichal Srb <michalsrb@gmail.com>2017-03-29 16:23:18 +0300
commit8f3e8663b3cf57c0b62d939d6953fbfcc112aadd (patch)
treeb82ad1fcbcf18c0d4c9891888243ff0bd0c0ce9a
parentd71508b94bd1c6f0d8be89aa559a8a7de48f7f3f (diff)
downloadtigervnc-8f3e8663b3cf57c0b62d939d6953fbfcc112aadd.tar.gz
tigervnc-8f3e8663b3cf57c0b62d939d6953fbfcc112aadd.zip
Delete underlying ssecurity in SSecurityVeNCrypt.
Otherwise it gets leaked which would allow even not authenticated clients to exhaust server memory.
-rw-r--r--common/rfb/SSecurityVeNCrypt.cxx2
1 files changed, 2 insertions, 0 deletions
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;