From d712597b5e149661c6856e4e82b5b3fd6b82f6cd Mon Sep 17 00:00:00 2001 From: Sander Mertens Date: Mon, 18 Sep 2023 23:29:45 -0700 Subject: [PATCH] Fix leak in test case --- test/cpp_api/src/RuleBuilder.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cpp_api/src/RuleBuilder.cpp b/test/cpp_api/src/RuleBuilder.cpp index 0c482f5d07..4b7da43027 100644 --- a/test/cpp_api/src/RuleBuilder.cpp +++ b/test/cpp_api/src/RuleBuilder.cpp @@ -829,6 +829,8 @@ void RuleBuilder_find(void) { }); test_assert(r == e2); + + q.destruct(); } void RuleBuilder_find_not_found(void) { @@ -844,6 +846,8 @@ void RuleBuilder_find_not_found(void) { }); test_assert(!r); + + q.destruct(); } void RuleBuilder_find_w_entity(void) { @@ -860,4 +864,6 @@ void RuleBuilder_find_w_entity(void) { }); test_assert(r == e2); + + q.destruct(); }