1173. [bug] Potential memory leaks in isc_log_create() and
isc_log_settag(). [RT #2336]
1174. [bug] Win32: add WSAECONNRESET to the expected errors
from connect(). [RT #2308]
+1173. [bug] Potential memory leaks in isc_log_create() and
+ isc_log_settag(). [RT #2336]
+
1165. [bug] We were rejecting notify-source{-v6} in zone clauses.
1164. [bug] Empty masters clauses in slave / stub zones were not
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.70.2.1 2001/09/05 00:38:03 gson Exp $ */
+/* $Id: log.c,v 1.70.2.2 2002/01/23 01:31:15 gson Exp $ */
/* Principal Authors: DCL */
if (lcfgp != NULL)
*lcfgp = lcfg;
- } else
+ } else {
+ if (lcfg != NULL)
+ isc_logconfig_destroy(&lcfg);
if (lctx != NULL)
isc_log_destroy(&lctx);
+ }
return (result);
}
REQUIRE(VALID_CONFIG(lcfg));
if (tag != NULL && *tag != '\0') {
+ if (lcfg->tag != NULL)
+ isc_mem_free(lcfg->lctx->mctx, lcfg->tag);
lcfg->tag = isc_mem_strdup(lcfg->lctx->mctx, tag);
if (lcfg->tag == NULL)
return (ISC_R_NOMEMORY);