Revision 7267c094 migration-exec.c
b/migration-exec.c | ||
---|---|---|
71 | 71 |
FdMigrationState *s; |
72 | 72 |
FILE *f; |
73 | 73 |
|
74 |
s = qemu_mallocz(sizeof(*s));
|
|
74 |
s = g_malloc0(sizeof(*s));
|
|
75 | 75 |
|
76 | 76 |
f = popen(command, "w"); |
77 | 77 |
if (f == NULL) { |
... | ... | |
113 | 113 |
err_after_open: |
114 | 114 |
pclose(f); |
115 | 115 |
err_after_alloc: |
116 |
qemu_free(s);
|
|
116 |
g_free(s);
|
|
117 | 117 |
return NULL; |
118 | 118 |
} |
119 | 119 |
|
Also available in: Unified diff