summaryrefslogtreecommitdiff
path: root/server/mdb6.c
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2019-10-14 14:52:31 -0400
committerThomas Markwalder <tmark@isc.org>2019-11-06 15:41:11 -0500
commitc1155d296c093590e1c1c39a1a181fb7efdabf7b (patch)
tree873d4ca8c9632131349bf75fa74ca7a55732fbce /server/mdb6.c
parent71929271bd781fdcbd5c15119feecd55ef92aff1 (diff)
downloadisc-dhcp-c1155d296c093590e1c1c39a1a181fb7efdabf7b.tar.gz
[#9,!11] Fixed reference leaks
common/dns.c cache_found_zone() - fixed 1 leaked reference common/execute.c execute_statements() - fixed 3 leaked references common/options.c parse_option_buffer() - fixed 3 leaked references relay/dhcrelay.c process_down6() - fixed 1 leaked reference server/confpars.c parse_statement() - fixed 1 leaked reference parse_subnet_declaration() - fixed 1 leaked reference parse_subnet6_declaration() - fixed 4 leaked references server/ddns.c ddns_update_lease_ptr() - fixed 1 leaked reference server/dhcp.c dhcpinform() - fixed 2 leaked references ack_lease() - fixed 1 leaked reference server/mdb6.c create_lease6() - fixed 2 leaked references
Diffstat (limited to 'server/mdb6.c')
-rw-r--r--server/mdb6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/mdb6.c b/server/mdb6.c
index 4afb3928..da7baf6e 100644
--- a/server/mdb6.c
+++ b/server/mdb6.c
@@ -1085,9 +1085,11 @@ create_lease6(struct ipv6_pool *pool, struct iasubopt **addr,
case D6O_IA_PD:
/* prefix */
log_error("create_lease6: prefix pool.");
+ data_string_forget(&ds, MDL);
return DHCP_R_INVALIDARG;
default:
log_error("create_lease6: untyped pool.");
+ data_string_forget(&ds, MDL);
return DHCP_R_INVALIDARG;
}