From: Witold Krecicki Date: Wed, 22 Jun 2016 12:55:22 +0000 (+0200) Subject: 4401. [bug] Fix leaks in contrib DLZ code. [RT #42707] X-Git-Tag: v9.11.0b1~34 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=047e477d27b7faa9a063fde549e2b2c141f2291b;p=thirdparty%2Fbind9.git 4401. [bug] Fix leaks in contrib DLZ code. [RT #42707] --- diff --git a/CHANGES b/CHANGES index 9d58c90f80b..294e787056f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +4401. [bug] Fix leaks in contrib DLZ code. [RT #42707] + 4400. [doc] Description of masters with TSIG, allow-query and allow-transfer options in catalog zones. [RT #42692] diff --git a/contrib/dlz/modules/mysql/dlz_mysql_dynamic.c b/contrib/dlz/modules/mysql/dlz_mysql_dynamic.c index e2bff75ef6e..1fe750c4b00 100644 --- a/contrib/dlz/modules/mysql/dlz_mysql_dynamic.c +++ b/contrib/dlz/modules/mysql/dlz_mysql_dynamic.c @@ -526,6 +526,7 @@ mysql_process_rs(mysql_instance_t *db, dns_sdlzlookup_t *lookup, db->log(ISC_LOG_ERROR, "MySQL module ttl must be " "a postive number"); + free(tmpString); return (ISC_R_FAILURE); } diff --git a/contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c b/contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c index 99c7b1c9ad8..f90f185ebed 100644 --- a/contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c +++ b/contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c @@ -601,6 +601,7 @@ sqlite3_process_rs(sqlite3_instance_t *db, dns_sdlzlookup_t *lookup, db->log(ISC_LOG_ERROR, "SQLite3 module: TTL must be " "a postive number"); + free(tmpString); return (ISC_R_FAILURE); }