Revision: 10500 https://osdn.net/projects/ttssh2/scm/svn/commits/10500 Author: zmatsuo Date: 2023-01-16 00:07:26 +0900 (Mon, 16 Jan 2023) Log Message: ----------- /R オプション処理時メモリリークがあったので修正 Modified Paths: -------------- trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2023-01-15 15:07:18 UTC (rev 10499) +++ trunk/teraterm/ttpset/ttset.c 2023-01-15 15:07:26 UTC (rev 10500) @@ -3833,8 +3833,10 @@ wchar_t *f = GetFilePath(&Temp[3], ts->HomeDirW, NULL); if (f != NULL) { WideCharToACP_t(f, ts->HostName, _countof(ts->HostName)); - if (strlen(ts->HostName) > 0) + if (strlen(ts->HostName) > 0) { ParamPort = IdFile; + } + free(f); } } else if (_wcsicmp(Temp, L"/T=0") == 0) { /* telnet disable */