diff --git a/CHANGES b/CHANGES index 97b392fdbe..a790ff0e6d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +2410. [bug] Correctly delete m_versionInfo. [RT #18432] + 2409. [bug] Only log that we disabled EDNS processing if we were subsequently successful. [RT #18029] diff --git a/bin/win32/BINDInstall/VersionInfo.cpp b/bin/win32/BINDInstall/VersionInfo.cpp index f5bab198a5..e940e9e042 100644 --- a/bin/win32/BINDInstall/VersionInfo.cpp +++ b/bin/win32/BINDInstall/VersionInfo.cpp @@ -55,7 +55,7 @@ CVersionInfo::CVersionInfo(CString filename) { if(m_versionInfo) { - delete m_versionInfo; + delete [] m_versionInfo; m_versionInfo = NULL; } return; @@ -68,7 +68,7 @@ CVersionInfo::CVersionInfo(CString filename) { if(m_versionInfo) { - delete m_versionInfo; + delete [] m_versionInfo; m_versionInfo = NULL; } return; @@ -89,7 +89,7 @@ CVersionInfo::~CVersionInfo() m_fixedInfo = NULL; if(m_versionInfo) { - delete m_versionInfo; + delete [] m_versionInfo; m_versionInfo = NULL; } }