|
@@ -65,6 +65,9 @@ struct NSEC3PARAMImpl {
|
|
NSEC3PARAM::NSEC3PARAM(const std::string& nsec3param_str) :
|
|
NSEC3PARAM::NSEC3PARAM(const std::string& nsec3param_str) :
|
|
impl_(NULL)
|
|
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);
|
|
std::auto_ptr<NSEC3PARAMImpl> impl_ptr(NULL);
|
|
|
|
|
|
try {
|
|
try {
|