fix memory leak of char[] initialization
This commit is contained in:
@@ -70,7 +70,9 @@ inline std::uint32_t readTimestampSize(boost::filesystem::ifstream ×tamp_in
|
||||
}
|
||||
|
||||
// Reads the timestamp in a file
|
||||
inline void readTimestamp(boost::filesystem::ifstream ×tamp_input_stream, char *timestamp, std::size_t timestamp_length)
|
||||
inline void readTimestamp(boost::filesystem::ifstream ×tamp_input_stream,
|
||||
char *timestamp,
|
||||
std::size_t timestamp_length)
|
||||
{
|
||||
timestamp_input_stream.read(timestamp, timestamp_length * sizeof(char));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user