]> source.dussan.org Git - tigervnc.git/commitdiff
Delete underlying ssecurity in SSecurityVeNCrypt. 441/head
authorMichal Srb <michalsrb@gmail.com>
Wed, 29 Mar 2017 13:23:18 +0000 (16:23 +0300)
committerMichal Srb <michalsrb@gmail.com>
Wed, 29 Mar 2017 13:23:18 +0000 (16:23 +0300)
Otherwise it gets leaked which would allow even not authenticated clients to exhaust server memory.

common/rfb/SSecurityVeNCrypt.cxx

index 7c137498b50a923a4cc22bc6400b923781d77237..ce6c71baf8cdde5451687d898737b7940d64c0cf 100644 (file)
@@ -55,6 +55,8 @@ SSecurityVeNCrypt::SSecurityVeNCrypt(SecurityServer *sec) : security(sec)
 
 SSecurityVeNCrypt::~SSecurityVeNCrypt()
 {
+  delete ssecurity;
+
   if (subTypes) {
     delete [] subTypes;
     subTypes = NULL;