Commit 78a94766 authored by Ondřej Surý's avatar Ondřej Surý Committed by Mark Andrews
Browse files

Fix memory leak in lex_test.c

(cherry picked from commit 7a3eb391)
parent 9114623d
Pipeline #7011 passed with stages
in 7 minutes and 11 seconds
...@@ -57,6 +57,10 @@ lex_0xff(void **state) { ...@@ -57,6 +57,10 @@ lex_0xff(void **state) {
result = isc_lex_gettoken(lex, 0, &token); result = isc_lex_gettoken(lex, 0, &token);
assert_int_equal(result, ISC_R_SUCCESS); assert_int_equal(result, ISC_R_SUCCESS);
isc_lex_destroy(&lex);
isc_mem_destroy(&mctx);
} }
/* check setting of source line */ /* check setting of source line */
...@@ -101,6 +105,10 @@ lex_setline(void **state) { ...@@ -101,6 +105,10 @@ lex_setline(void **state) {
line = isc_lex_getsourceline(lex); line = isc_lex_getsourceline(lex);
assert_int_equal(line, 105U); assert_int_equal(line, 105U);
isc_lex_destroy(&lex);
isc_mem_destroy(&mctx);
} }
int int
......
Supports Markdown
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