commit | 8f3e8663b3cf57c0b62d939d6953fbfcc112aadd | [log] [tgz] |
---|---|---|
author | Michal Srb <michalsrb@gmail.com> | Wed Mar 29 16:23:18 2017 +0300 |
committer | Michal Srb <michalsrb@gmail.com> | Wed Mar 29 16:23:18 2017 +0300 |
tree | b82ad1fcbcf18c0d4c9891888243ff0bd0c0ce9a | |
parent | d71508b94bd1c6f0d8be89aa559a8a7de48f7f3f [diff] [blame] |
Delete underlying ssecurity in SSecurityVeNCrypt. Otherwise it gets leaked which would allow even not authenticated clients to exhaust server memory.
diff --git a/common/rfb/SSecurityVeNCrypt.cxx b/common/rfb/SSecurityVeNCrypt.cxx index 7c13749..ce6c71b 100644 --- a/common/rfb/SSecurityVeNCrypt.cxx +++ b/common/rfb/SSecurityVeNCrypt.cxx
@@ -55,6 +55,8 @@ SSecurityVeNCrypt::~SSecurityVeNCrypt() { + delete ssecurity; + if (subTypes) { delete [] subTypes; subTypes = NULL;