2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

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

Fix memory leak in lex_test.c

Closes #711

See merge request isc-projects/bind9!1098
This commit is contained in:
Ondřej Surý
2018-11-19 01:57:34 -05:00

View File

@@ -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