Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-1286

find 4 C++ mem-leak points

    XMLWordPrintableJSON

Details

    Description

      Find 4 C++ mem-leak points as below:

      == In ./client-cpp/src/main/Session.h ==
      Tablet(std::string deviceId,...)

      { ... timestamps = new int64_t[maxRowNumber]; ... }

      == 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()]; ... }

      Attachments

        Activity

          People

            jamber001 Bo Zhang
            jamber001 Bo Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: