Fixing memory leaks

This commit is contained in:
Mark Berrill
2022-07-13 11:20:53 -04:00
parent ed8f5684fd
commit 3cc12ac36e
3 changed files with 202 additions and 27 deletions

View File

@@ -87,6 +87,7 @@ void Domain::read_swc(const std::string &Filename) {
List_parent[count] = int(strtod(line2, &line2));
count++;
}
fclose( fid );
cout << " Number of lines extracted is: " << count << endl;
INSIST(count == number_of_lines, "Problem reading swc file!");