]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4401. [bug] Fix leaks in contrib DLZ code. [RT #42707]
authorWitold Krecicki <wpk@isc.org>
Wed, 22 Jun 2016 12:55:22 +0000 (14:55 +0200)
committerWitold Krecicki <wpk@isc.org>
Wed, 22 Jun 2016 12:55:22 +0000 (14:55 +0200)
CHANGES
contrib/dlz/modules/mysql/dlz_mysql_dynamic.c
contrib/dlz/modules/sqlite3/dlz_sqlite3_dynamic.c

diff --git a/CHANGES b/CHANGES
index 9d58c90f80b9cf59b8f46dbc381ccbc564f16768..294e787056f121ebd4bebf9e4f49029865850649 100644 (file)
--- 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]
 
index e2bff75ef6eadd611884715f9e049b89603c801b..1fe750c4b007ac88c2770843167c6fb97422bffc 100644 (file)
@@ -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);
                        }
 
index 99c7b1c9ad8dc319a910b8256cdc07259d7ddac5..f90f185ebed2ac4af1aacc1f9fdcc6355af453a8 100644 (file)
@@ -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);
                        }