mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 15:40:01 -04: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:
commit
aa4ac49bb8
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue