You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Bo Zhang (Jira)" <ji...@apache.org> on 2021/09/22 07:25:00 UTC

[jira] [Assigned] (IOTDB-1289) SessionExample.cpp has mem-leak

     [ https://issues.apache.org/jira/browse/IOTDB-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bo Zhang reassigned IOTDB-1289:
-------------------------------

    Assignee: Bo Zhang

> SessionExample.cpp has mem-leak
> -------------------------------
>
>                 Key: IOTDB-1289
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1289
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Client/Others
>            Reporter: Bo Zhang
>            Assignee: Bo Zhang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.13.0, 0.12.3
>
>
> In File ./example/client-cpp-example/src/SessionExample.cpp
> below codes have mem-leak.
>  
> {code:java}
> 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);
> ...
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)