Revision 7267c094 qga/guest-agent-command-state.c
b/qga/guest-agent-command-state.c | ||
---|---|---|
27 | 27 |
void (*init)(void), |
28 | 28 |
void (*cleanup)(void)) |
29 | 29 |
{ |
30 |
GACommandGroup *cg = qemu_mallocz(sizeof(GACommandGroup));
|
|
30 |
GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));
|
|
31 | 31 |
cg->init = init; |
32 | 32 |
cg->cleanup = cleanup; |
33 | 33 |
cs->groups = g_slist_append(cs->groups, cg); |
... | ... | |
67 | 67 |
|
68 | 68 |
GACommandState *ga_command_state_new(void) |
69 | 69 |
{ |
70 |
GACommandState *cs = qemu_mallocz(sizeof(GACommandState));
|
|
70 |
GACommandState *cs = g_malloc0(sizeof(GACommandState));
|
|
71 | 71 |
cs->groups = NULL; |
72 | 72 |
return cs; |
73 | 73 |
} |
Also available in: Unified diff