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

SessionExample.cpp has mem-leak

    XMLWordPrintableJSON

Details

    Description

      In File ./example/client-cpp-example/src/SessionExample.cpp

      below codes have mem-leak.

       

      void insertRecords() {
      ...
          vector<string>* values;   
          for (int64_t time = 0; time < 500; time++) {
              values = new vector<string>();  //here, mem-leak
              values->push_back("1");
              values->push_back("2");
              values->push_back("3");        
              deviceIds.push_back(deviceId);
              measurementsList.push_back(measurements);
      ...
      }
      

       

      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: