Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
78a94766
Commit
78a94766
authored
Nov 19, 2018
by
Ondřej Surý
Committed by
Mark Andrews
Nov 21, 2018
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/tests/lex_test.c
View file @
78a94766
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment