Skip to content
Snippets Groups Projects
Commit 45f039a1 authored by Tobias Bockh's avatar Tobias Bockh
Browse files

fix memory leak in FillFromStringUtility if string longer than container

parent 7cb97a64
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ namespace {
const Tokenizer::iterator end{tok.end()};
int j{0};
for (Tokenizer::iterator i{tok.begin()}; i!=end; ++i) {
if (j == userContainer.size())
break;
try {
userContainer[j]=boost::lexical_cast<V_t>(*i);
} catch (const boost::bad_lexical_cast&) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment