Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Find 4 C++ mem-leak points as below:
== In ./client-cpp/src/main/Session.h ==
Tablet(std::string deviceId,...)
== in ./client-cpp/src/main/Session.cpp ==
void Tablet::createColumns()
{ ... timestamps = new int64_t[maxRowNumber]; ... }
void Session::sortTablet(Tablet& tablet)
{ ... int* index = new int[tablet.rowSize]; ... }void Session::insertRecordsOfOneDevice(string deviceId,...)
{ ... int* index = new int[times.size()]; ... }