Skip to content

Commit

Permalink
Fix for memory leak introduced in commit a5582cd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Jehl committed Jun 13, 2024
1 parent 4cb2a5d commit 46b1c01
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 46b1c01

Please sign in to comment.