Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: fix #36. add a test to make sure the parser doesn't leak memory
Browse files Browse the repository at this point in the history
jvshahid committed Nov 18, 2013
1 parent dbc6208 commit cf6f149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/test_memory_leaks.sh
Original file line number Diff line number Diff line change
@@ -33,6 +33,9 @@ int main(int argc, char **argv) {
q = parse_query("select email from users.events where email =~ /gmail\\\\.com/i and time>now()-2d;");
close_query(&q);
q = parse_query("select email from users.events as events where email === /gmail\\\\.com/i and time>now()-2d;");
close_query(&q);
return 0;
}
EOF

0 comments on commit cf6f149

Please sign in to comment.