fix memory leak of char[] initialization

This commit is contained in:
Huyen Chau Nguyen
2016-10-19 11:55:35 -07:00
parent 316ef305de
commit 2d13116487
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -70,7 +70,9 @@ inline std::uint32_t readTimestampSize(boost::filesystem::ifstream &timestamp_in
}
// Reads the timestamp in a file
inline void readTimestamp(boost::filesystem::ifstream &timestamp_input_stream, char *timestamp, std::size_t timestamp_length)
inline void readTimestamp(boost::filesystem::ifstream &timestamp_input_stream,
char *timestamp,
std::size_t timestamp_length)
{
timestamp_input_stream.read(timestamp, timestamp_length * sizeof(char));
}