761417898 commented on code in PR #15439:
URL: https://github.com/apache/iotdb/pull/15439#discussion_r2083916356


##########
iotdb-client/client-cpp/src/main/TableSession.h:
##########
@@ -27,15 +27,19 @@
 class TableSession {
 private:
     Session* session;
+    string getDatabase();
 public:
     TableSession(Session* session) {
         this->session = session;
     }
+    ~TableSession() {
+        delete session;
+        session = nullptr;

Review Comment:
   fixed
   ```java
       ~TableSession() {
           if (session) {
               delete session;
               session = nullptr;
           }
       }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to