Skip to content

read_updates.cpp memory leak #671

@yakra

Description

@yakra

string* fields = new string[5];
// deleted as DB table is written
string* ptr_array[5] = {&fields[0], &fields[1], &fields[2], &fields[3], &fields[4]};
split(line, ptr_array, NumFields, ';');
if (NumFields != 5)
{ el.add_error("Could not parse updates.csv line: [" + line
+ "], expected 5 fields, found " + std::to_string(NumFields));
continue;
}

In here working on #62. May as well fix this along with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions