fixed another memory leak in CSVParser::parse() (similar like before)
This commit is contained in:
parent
f8d24de386
commit
6f50626dda
|
@ -149,9 +149,9 @@ void CSVParser::parse()
|
||||||
if( lastc == -1 )
|
if( lastc == -1 )
|
||||||
{
|
{
|
||||||
// an empty file/string, in such a case we return such a space struct (if would be serialized to json): [[]]
|
// 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();
|
Space row_space;
|
||||||
row_space->set_empty_table();
|
row_space.set_empty_table();
|
||||||
space->add(row_space);
|
space->add(std::move(row_space));
|
||||||
}
|
}
|
||||||
|
|
||||||
while( lastc != -1 )
|
while( lastc != -1 )
|
||||||
|
|
Loading…
Reference in New Issue