mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Apply the isc_mem_cget semantic patch
This commit is contained in:
@@ -560,7 +560,7 @@ dns_diff_sort(dns_diff_t *diff, dns_diff_compare_func *compare) {
|
||||
if (length == 0) {
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
v = isc_mem_get(diff->mctx, length * sizeof(dns_difftuple_t *));
|
||||
v = isc_mem_cget(diff->mctx, length, sizeof(dns_difftuple_t *));
|
||||
for (i = 0; i < length; i++) {
|
||||
p = ISC_LIST_HEAD(diff->tuples);
|
||||
v[i] = p;
|
||||
@@ -571,7 +571,7 @@ dns_diff_sort(dns_diff_t *diff, dns_diff_compare_func *compare) {
|
||||
for (i = 0; i < length; i++) {
|
||||
ISC_LIST_APPEND(diff->tuples, v[i], link);
|
||||
}
|
||||
isc_mem_put(diff->mctx, v, length * sizeof(dns_difftuple_t *));
|
||||
isc_mem_cput(diff->mctx, v, length, sizeof(dns_difftuple_t *));
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user