Revision 7267c094 block/qed-check.c
b/block/qed-check.c | ||
---|---|---|
197 | 197 |
}; |
198 | 198 |
int ret; |
199 | 199 |
|
200 |
check.used_clusters = qemu_mallocz(((check.nclusters + 31) / 32) *
|
|
200 |
check.used_clusters = g_malloc0(((check.nclusters + 31) / 32) *
|
|
201 | 201 |
sizeof(check.used_clusters[0])); |
202 | 202 |
|
203 | 203 |
ret = qed_check_l1_table(&check, s->l1_table); |
... | ... | |
206 | 206 |
qed_check_for_leaks(&check); |
207 | 207 |
} |
208 | 208 |
|
209 |
qemu_free(check.used_clusters);
|
|
209 |
g_free(check.used_clusters);
|
|
210 | 210 |
return ret; |
211 | 211 |
} |
Also available in: Unified diff