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

This commit is contained in:
Tomasz Sowa 2021-05-19 22:34:10 +02:00
parent f8d24de386
commit 6f50626dda
1 changed files with 3 additions and 3 deletions

View File

@ -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 )