Skip to content

Commit

Permalink
Fix leak in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Sep 19, 2023
1 parent dfcf0db commit d712597
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cpp_api/src/RuleBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ void RuleBuilder_find(void) {
});

test_assert(r == e2);

q.destruct();
}

void RuleBuilder_find_not_found(void) {
Expand All @@ -844,6 +846,8 @@ void RuleBuilder_find_not_found(void) {
});

test_assert(!r);

q.destruct();
}

void RuleBuilder_find_w_entity(void) {
Expand All @@ -860,4 +864,6 @@ void RuleBuilder_find_w_entity(void) {
});

test_assert(r == e2);

q.destruct();
}

0 comments on commit d712597

Please sign in to comment.