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 <[email protected]>
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() {