You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2021/06/16 14:58:38 UTC

[iotdb] branch master updated: Fix Cpp example not release query dataset bug (#3419)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 699f866  Fix Cpp example not release query dataset bug (#3419)
699f866 is described below

commit 699f866fb73d81c6d35ad6b401ceceb2499decbf
Author: J.J. Liu <li...@gmail.com>
AuthorDate: Wed Jun 16 22:58:17 2021 +0800

    Fix Cpp example not release query dataset bug (#3419)
---
 example/client-cpp-example/src/SessionExample.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/example/client-cpp-example/src/SessionExample.cpp b/example/client-cpp-example/src/SessionExample.cpp
index f0c5453..c53552e 100644
--- a/example/client-cpp-example/src/SessionExample.cpp
+++ b/example/client-cpp-example/src/SessionExample.cpp
@@ -263,6 +263,8 @@ void queryLast() {
     while (dataSet->hasNext()) {
         cout << dataSet->next()->toString();
     }
+
+    dataSet->closeOperationHandle();
 }
 
 int main() {