Revision: 7955 https://osdn.net/projects/ttssh2/scm/svn/commits/7955 Author: yutakapon Date: 2019-08-14 17:07:29 +0900 (Wed, 14 Aug 2019) Log Message: ----------- エラー時に BIGNUM のメモリ解放を行うようにした。 チケット #36876 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/36876 Modified Paths: -------------- branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c -------------- next part -------------- Modified: branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c =================================================================== --- branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c 2019-08-14 07:00:10 UTC (rev 7954) +++ branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c 2019-08-14 08:07:29 UTC (rev 7955) @@ -58,6 +58,8 @@ return (dh); error: + BN_free(g); + BN_free(p); DH_free(dh); return (NULL); }