diff options
author | Michal Srb <michalsrb@gmail.com> | 2017-03-29 16:23:18 +0300 |
---|---|---|
committer | Michal Srb <michalsrb@gmail.com> | 2017-03-29 16:23:18 +0300 |
commit | 8f3e8663b3cf57c0b62d939d6953fbfcc112aadd (patch) | |
tree | b82ad1fcbcf18c0d4c9891888243ff0bd0c0ce9a | |
parent | d71508b94bd1c6f0d8be89aa559a8a7de48f7f3f (diff) | |
download | tigervnc-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.cxx | 2 |
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; |