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
ea6ace7d
Commit
ea6ace7d
authored
Dec 19, 1998
by
Bob Halley
Browse files
fix memory leak
parent
7cfb2cec
Changes
1
Show whitespace changes
Inline
Side-by-side
bin/tests/sym_test.c
View file @
ea6ace7d
...
@@ -108,10 +108,13 @@ main(int argc, char *argv[]) {
...
@@ -108,10 +108,13 @@ main(int argc, char *argv[]) {
value
.
as_pointer
=
mem_strdup
(
mctx
,
cp
);
value
.
as_pointer
=
mem_strdup
(
mctx
,
cp
);
result
=
isc_symtab_define
(
st
,
key
,
1
,
value
,
result
=
isc_symtab_define
(
st
,
key
,
1
,
value
,
exists_policy
);
exists_policy
);
if
(
trace
||
result
!=
ISC_R_SUCCESS
)
if
(
trace
||
result
!=
ISC_R_SUCCESS
)
{
printf
(
"define('%s', '%s'): %s
\n
"
,
printf
(
"define('%s', '%s'): %s
\n
"
,
key
,
cp
,
key
,
cp
,
isc_result_totext
(
result
));
isc_result_totext
(
result
));
if
(
result
!=
ISC_R_SUCCESS
)
undefine_action
(
key
,
1
,
value
);
}
}
}
}
}
}
}
...
...
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