Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
802589cc
Commit
802589cc
authored
Aug 17, 2012
by
Mukund Sivaraman
Browse files
[master] Fix leaks in newly added RRset unittests
parent
e212ae77
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/dns/tests/rrset_unittest.cc
View file @
802589cc
...
@@ -277,13 +277,13 @@ class RRsetRRSIGTest : public ::testing::Test {
...
@@ -277,13 +277,13 @@ class RRsetRRSIGTest : public ::testing::Test {
protected:
protected:
RRsetRRSIGTest
()
:
test_name
(
"test.example.com"
)
RRsetRRSIGTest
()
:
test_name
(
"test.example.com"
)
{
{
rrset_a
=
new
RRset
(
test_name
,
RRClass
::
IN
(),
rrset_a
=
RRsetPtr
(
new
RRset
(
test_name
,
RRClass
::
IN
(),
RRType
::
A
(),
RRTTL
(
3600
));
RRType
::
A
(),
RRTTL
(
3600
))
)
;
rrset_a
->
addRdata
(
in
::
A
(
"192.0.2.1"
));
rrset_a
->
addRdata
(
in
::
A
(
"192.0.2.1"
));
rrset_a
->
addRdata
(
in
::
A
(
"192.0.2.2"
));
rrset_a
->
addRdata
(
in
::
A
(
"192.0.2.2"
));
rrset_aaaa
=
new
RRset
(
test_name
,
RRClass
::
IN
(),
rrset_aaaa
=
RRsetPtr
(
new
RRset
(
test_name
,
RRClass
::
IN
(),
RRType
::
AAAA
(),
RRTTL
(
3600
));
RRType
::
AAAA
(),
RRTTL
(
3600
))
)
;
rrset_aaaa
->
addRdata
(
in
::
AAAA
(
"2001:db8::1234"
));
rrset_aaaa
->
addRdata
(
in
::
AAAA
(
"2001:db8::1234"
));
rrset_rrsig
=
RRsetPtr
(
new
RRset
(
test_name
,
RRClass
::
IN
(),
rrset_rrsig
=
RRsetPtr
(
new
RRset
(
test_name
,
RRClass
::
IN
(),
...
@@ -295,8 +295,8 @@ protected:
...
@@ -295,8 +295,8 @@ protected:
}
}
const
Name
test_name
;
const
Name
test_name
;
RRset
*
rrset_a
;
// A RRset with two RDATAs
RRset
Ptr
rrset_a
;
// A RRset with two RDATAs
RRset
*
rrset_aaaa
;
// AAAA RRset with one RDATA with RRSIG
RRset
Ptr
rrset_aaaa
;
// AAAA RRset with one RDATA with RRSIG
RRsetPtr
rrset_rrsig
;
// RRSIG for the AAAA RRset
RRsetPtr
rrset_rrsig
;
// RRSIG for the AAAA RRset
};
};
...
...
Write
Preview
Markdown
is supported
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