Revision 7267c094 block/blkdebug.c
b/block/blkdebug.c | ||
---|---|---|
214 | 214 |
} |
215 | 215 |
|
216 | 216 |
/* Set attributes common for all actions */ |
217 |
rule = qemu_mallocz(sizeof(*rule));
|
|
217 |
rule = g_malloc0(sizeof(*rule));
|
|
218 | 218 |
*rule = (struct BlkdebugRule) { |
219 | 219 |
.event = event, |
220 | 220 |
.action = d->action, |
... | ... | |
392 | 392 |
for (i = 0; i < BLKDBG_EVENT_MAX; i++) { |
393 | 393 |
QLIST_FOREACH_SAFE(rule, &s->rules[i], next, next) { |
394 | 394 |
QLIST_REMOVE(rule, next); |
395 |
qemu_free(rule);
|
|
395 |
g_free(rule);
|
|
396 | 396 |
} |
397 | 397 |
} |
398 | 398 |
} |
Also available in: Unified diff