Commit aa4ac49b authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Merge branch '711-fix-memory-leak-in-lex_test' into 'master'

Fix memory leak in lex_test.c

Closes #711

See merge request !1098
parents 6f09738c 7a3eb391
Pipeline #6913 passed with stages
in 9 minutes and 41 seconds
......@@ -56,6 +56,10 @@ lex_0xff(void **state) {
result = isc_lex_gettoken(lex, 0, &token);
assert_int_equal(result, ISC_R_SUCCESS);
isc_lex_destroy(&lex);
isc_mem_destroy(&mctx);
}
/* check setting of source line */
......@@ -100,6 +104,10 @@ lex_setline(void **state) {
line = isc_lex_getsourceline(lex);
assert_int_equal(line, 105U);
isc_lex_destroy(&lex);
isc_mem_destroy(&mctx);
}
int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment