Browse Source

fixed another memory leak in CSVParser::parse() (similar like before)

pull/4/head
Tomasz Sowa 1 year ago
parent
commit
6f50626dda
  1. 6
      src/csv/csvparser.cpp

6
src/csv/csvparser.cpp

@ -149,9 +149,9 @@ void CSVParser::parse()
if( lastc == -1 )
{
// an empty file/string, in such a case we return such a space struct (if would be serialized to json): [[]]
Space * row_space = new Space();
row_space->set_empty_table();
space->add(row_space);
Space row_space;
row_space.set_empty_table();
space->add(std::move(row_space));
}
while( lastc != -1 )

Loading…
Cancel
Save