Browse Source

Memory leak

Source commit: 1f8d1d34cfbb5554e3d4ed4206047e42410b695c
Martin Prikryl 4 năm trước cách đây
mục cha
commit
63dccac950
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);
 }
 //---------------------------------------------------------------------------