|
|
45d60a |
diff -up dhcp-4.2.5/common/comapi.c.leak dhcp-4.2.5/common/comapi.c
|
|
|
45d60a |
diff -up dhcp-4.2.5/server/db.c.leak dhcp-4.2.5/server/db.c
|
|
|
45d60a |
--- dhcp-4.2.5/server/db.c.leak 2013-07-02 13:34:56.000000000 +0200
|
|
|
45d60a |
+++ dhcp-4.2.5/server/db.c 2013-07-02 13:37:06.335729135 +0200
|
|
|
45d60a |
@@ -414,6 +414,7 @@ int write_host (host)
|
|
|
45d60a |
fputc (';', db_file);
|
|
|
45d60a |
if (errno)
|
|
|
45d60a |
++errors;
|
|
|
45d60a |
+ data_string_forget (&ip_addrs, MDL);
|
|
|
45d60a |
}
|
|
|
45d60a |
|
|
|
45d60a |
if (host -> named_group) {
|
|
|
45d60a |
diff -up dhcp-4.2.5/server/omapi.c.leak dhcp-4.2.5/server/omapi.c
|
|
|
45d60a |
--- dhcp-4.2.5/server/omapi.c.leak 2013-01-03 01:02:25.000000000 +0100
|
|
|
45d60a |
+++ dhcp-4.2.5/server/omapi.c 2013-07-02 13:41:05.701429114 +0200
|
|
|
45d60a |
@@ -1179,8 +1179,6 @@ isc_result_t dhcp_host_destroy (omapi_ob
|
|
|
45d60a |
if (h -> type != dhcp_type_host)
|
|
|
45d60a |
return DHCP_R_INVALIDARG;
|
|
|
45d60a |
|
|
|
45d60a |
-#if defined (DEBUG_MEMORY_LEAKAGE) || \
|
|
|
45d60a |
- defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)
|
|
|
45d60a |
struct host_decl *host = (struct host_decl *)h;
|
|
|
45d60a |
if (host -> n_ipaddr)
|
|
|
45d60a |
host_dereference (&host -> n_ipaddr, file, line);
|
|
|
45d60a |
@@ -1199,7 +1197,6 @@ isc_result_t dhcp_host_destroy (omapi_ob
|
|
|
45d60a |
omapi_object_dereference ((omapi_object_t **)
|
|
|
45d60a |
&host -> named_group, file, line);
|
|
|
45d60a |
data_string_forget (&host -> auth_key_id, file, line);
|
|
|
45d60a |
-#endif
|
|
|
45d60a |
|
|
|
45d60a |
return ISC_R_SUCCESS;
|
|
|
45d60a |
}
|
|
|
45d60a |
@@ -1285,6 +1282,7 @@ isc_result_t dhcp_host_stuff_values (oma
|
|
|
45d60a |
ip_addrs.data, ip_addrs.len);
|
|
|
45d60a |
if (status != ISC_R_SUCCESS)
|
|
|
45d60a |
return status;
|
|
|
45d60a |
+ data_string_forget (&ip_addrs, MDL);
|
|
|
45d60a |
}
|
|
|
45d60a |
|
|
|
45d60a |
if (host -> client_identifier.len) {
|