Commit fb68ed9a authored by Mark Andrews's avatar Mark Andrews
Browse files

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

Fix memory leak in lex_test.c

See merge request !1112
parents 9114623d 78a94766
Pipeline #7013 passed with stages
in 8 minutes and 10 seconds
......@@ -57,6 +57,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 */
......@@ -101,6 +105,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