+2435. [bug] Fixed an ACL memory leak affecting win32.
+
2434. [placeholder]
2433. [tuning] Set initial timeout to 800ms.
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: acl.c,v 1.45 2008/04/29 01:01:42 each Exp $ */
+/* $Id: acl.c,v 1.46 2008/09/10 21:52:49 each Exp $ */
/*! \file */
dns_aclelement_t *e = &acl->elements[i];
/* Already found a better match? */
- if (match_num != -1 && match_num < e->node_num)
+ if (match_num != -1 && match_num < e->node_num) {
+ isc_refcount_destroy(&pfx.refcount);
return (ISC_R_SUCCESS);
+ }
if (dns_aclelement_match(reqaddr, reqsigner,
e, env, matchelt)) {
else
*match = e->node_num;
}
+ isc_refcount_destroy(&pfx.refcount);
return (ISC_R_SUCCESS);
}
}
+ isc_refcount_destroy(&pfx.refcount);
return (ISC_R_SUCCESS);
}
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: iptable.c,v 1.10 2008/08/27 04:44:18 marka Exp $ */
+/* $Id: iptable.c,v 1.11 2008/09/10 21:52:49 each Exp $ */
#include <isc/mem.h>
#include <isc/radix.h>
result = isc_radix_insert(tab->radix, &node, NULL, &pfx);
- if (result != ISC_R_SUCCESS)
+ if (result != ISC_R_SUCCESS) {
+ isc_refcount_destroy(&pfx.refcount);
return(result);
+ }
/* If the node already contains data, don't overwrite it */
if (node->data[ISC_IS6(family)] == NULL) {
node->data[ISC_IS6(family)] = &dns_iptable_neg;
}
+ isc_refcount_destroy(&pfx.refcount);
return (ISC_R_SUCCESS);
}