Revision: 10463 https://osdn.net/projects/ttssh2/scm/svn/commits/10463 Author: zmatsuo Date: 2023-01-08 00:12:04 +0900 (Sun, 08 Jan 2023) Log Message: ----------- メモリリーク修正 - r10445 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/10445 Modified Paths: -------------- trunk/teraterm/teraterm/addsetting.cpp trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/addsetting.cpp =================================================================== --- trunk/teraterm/teraterm/addsetting.cpp 2023-01-07 15:11:54 UTC (rev 10462) +++ trunk/teraterm/teraterm/addsetting.cpp 2023-01-07 15:12:04 UTC (rev 10463) @@ -1751,6 +1751,7 @@ return; } + free(ts.LogDefaultNameW); ts.LogDefaultNameW = def_name; free(buf3); } Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2023-01-07 15:11:54 UTC (rev 10462) +++ trunk/teraterm/ttpset/ttset.c 2023-01-07 15:12:04 UTC (rev 10463) @@ -3963,6 +3963,7 @@ (void **)&ts->LogDefaultPathW, (void **)&ts->MacroFNW, (void **)&ts->LogFNW, + (void **)&ts->LogDefaultNameW, }; int i; for(i = 0; i < _countof(ptr_list); i++) {