diff options
author | Marcin Siodelski <marcin@isc.org> | 2016-09-13 14:44:35 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2016-09-13 14:44:35 +0200 |
commit | 9aa2ab27d1ea53d9bb7d7f57930f0e3f04acbfa3 (patch) | |
tree | c2ebb465eb20487c9f87f6144089cca15a965ec1 /tools | |
parent | [master] Created ChangeLog entry for #4261. (diff) | |
download | kea-9aa2ab27d1ea53d9bb7d7f57930f0e3f04acbfa3.tar.xz kea-9aa2ab27d1ea53d9bb7d7f57930f0e3f04acbfa3.zip |
[3161] Avoid memory leak in the log message compiler.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/system_messages.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/system_messages.cc b/tools/system_messages.cc index ef2173dadb..74e5171b42 100644 --- a/tools/system_messages.cc +++ b/tools/system_messages.cc @@ -451,6 +451,7 @@ void processFileContent(const std::string& filename, char* word1 = strtok(NULL, " \t\r\n\t\v"); prefix = word1; } + delete[] line; } else if (l->at(0) == '%') { // Start of a message. Add the message we were processing to the // dictionary and clear everything apart from the file name. |