Skip to content

Commit 2e2f528

Browse files
committed
fix cpp session compilation
1 parent a833f18 commit 2e2f528

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

example/client-cpp-example/src/TableModelSessionExample.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
using namespace std;
2424

25-
TableSession *session;
25+
shared_ptr<TableSession> session;
2626

2727
void insertRelationalTablet() {
2828

@@ -203,8 +203,6 @@ int main() {
203203
cout << "session close\n" << endl;
204204
session->close();
205205

206-
delete session;
207-
208206
cout << "finished!\n" << endl;
209207
} catch (IoTDBConnectionException &e) {
210208
cout << e.what() << endl;

0 commit comments

Comments
 (0)