Skip to content

Commit

Permalink
Merge pull request #1454 from markus-jehl/issue/1445-memory-leak-in-i…
Browse files Browse the repository at this point in the history
…nterfile-reading

Fix for memory leak introduced in commit a5582cd.
  • Loading branch information
KrisThielemans authored Jun 19, 2024
2 parents fdd5a9c + 46b1c01 commit 1b4c405
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/buildblock/ProjData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ ProjData::read_from_file(const string& filename, const std::ios::openmode openmo
}
}

fstream* input = new fstream(actual_filename.c_str(), openmode | ios::binary);
if (!*input)
error("ProjData::read_from_file: error opening file %s", actual_filename.c_str());

const FileSignature file_signature(actual_filename);
const char* signature = file_signature.get_signature();

Expand Down

0 comments on commit 1b4c405

Please sign in to comment.