1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

Merge pull request #780 from dnobori/181029_fixmemoryleak

Merge PR #780: Fix a single memory leak in loading the string table
This commit is contained in:
Ilya Shipitsin 2018-10-29 11:32:08 +05:00 committed by GitHub
commit b5125e566c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@ -25,6 +25,7 @@ x64_Debug
*.user
*.ncb
*.opt
*.suo
!/src/BuildFiles/**/*
# Applied for 'developer_tools/stbchecker/'
@ -204,3 +205,4 @@ developer_tools/stbchecker/**/ASALocalRun/
developer_tools/stbchecker/**/*.binlog
developer_tools/stbchecker/**/*.nvuser
developer_tools/stbchecker/**/.mfractor/

View File

@ -945,6 +945,8 @@ TABLE *ParseTableLine(char *line, char *prefix, UINT prefix_size, LIST *replace_
UniReplaceStrEx(tmp, tmp_size, tmp, (wchar_t *)r->name, r->unistr, false);
}
Free(unistr);
unistr = CopyUniStr(tmp);
Free(tmp);