Skip to content
GitLab
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
Kea
Commits
82fc64bf
Commit
82fc64bf
authored
Apr 09, 2013
by
Mukund Sivaraman
Browse files
[2387] Add comments on use of auto_ptr
parent
e8b5540d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/rdata/generic/dnskey_48.cc
View file @
82fc64bf
...
...
@@ -72,6 +72,9 @@ struct DNSKEYImpl {
DNSKEY
::
DNSKEY
(
const
std
::
string
&
dnskey_str
)
:
impl_
(
NULL
)
{
// We use auto_ptr here because if there is an exception in this
// constructor, the destructor is not called and there could be a
// leak of the DNSKEYImpl that constructFromLexer() returns.
std
::
auto_ptr
<
DNSKEYImpl
>
impl_ptr
(
NULL
);
try
{
...
...
src/lib/dns/rdata/generic/nsec3_50.cc
View file @
82fc64bf
...
...
@@ -87,6 +87,9 @@ struct NSEC3Impl {
NSEC3
::
NSEC3
(
const
std
::
string
&
nsec3_str
)
:
impl_
(
NULL
)
{
// We use auto_ptr here because if there is an exception in this
// constructor, the destructor is not called and there could be a
// leak of the NSEC3Impl that constructFromLexer() returns.
std
::
auto_ptr
<
NSEC3Impl
>
impl_ptr
(
NULL
);
try
{
...
...
src/lib/dns/rdata/generic/nsec3param_51.cc
View file @
82fc64bf
...
...
@@ -65,6 +65,9 @@ struct NSEC3PARAMImpl {
NSEC3PARAM
::
NSEC3PARAM
(
const
std
::
string
&
nsec3param_str
)
:
impl_
(
NULL
)
{
// We use auto_ptr here because if there is an exception in this
// constructor, the destructor is not called and there could be a
// leak of the NSEC3PARAMImpl that constructFromLexer() returns.
std
::
auto_ptr
<
NSEC3PARAMImpl
>
impl_ptr
(
NULL
);
try
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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