Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Add evhtp_query_free for test_query
Browse files Browse the repository at this point in the history
- test_query did not properly free the processed query.
  • Loading branch information
NathanFrench committed Nov 3, 2017
1 parent 5e8df71 commit b150ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/test_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ query_test(const char * raw_query, int exp_error, struct expected exp[], int fla
return -1;
}

evhtp_query_free(query);
return num_errors;
} /* query_test */

Expand Down Expand Up @@ -235,4 +236,3 @@ main(int argc, char ** argv) {

return 0;
}

0 comments on commit b150ebe

Please sign in to comment.