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

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

Fix memory leak in lex_test.c

See merge request !1111
parents 0be191f8 f9b96e6d
Pipeline #7012 passed with stages
in 8 minutes and 4 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