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