Parcourir la source

Memory leak

Source commit: 1f8d1d34cfbb5554e3d4ed4206047e42410b695c
Martin Prikryl il y a 4 ans
Parent
commit
63dccac950
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      source/core/PuttyIntf.cpp

+ 1 - 0
source/core/PuttyIntf.cpp

@@ -748,6 +748,7 @@ void FreeKey(TPrivateKey * PrivateKey)
 {
   struct ssh2_userkey * Ssh2Key = reinterpret_cast<struct ssh2_userkey *>(PrivateKey);
   ssh_key_free(Ssh2Key->key);
+  sfree(Ssh2Key->comment);
   sfree(Ssh2Key);
 }
 //---------------------------------------------------------------------------