Revision 7267c094 migration-unix.c
b/migration-unix.c | ||
---|---|---|
88 | 88 |
addr.sun_family = AF_UNIX; |
89 | 89 |
snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", path); |
90 | 90 |
|
91 |
s = qemu_mallocz(sizeof(*s));
|
|
91 |
s = g_malloc0(sizeof(*s));
|
|
92 | 92 |
|
93 | 93 |
s->get_error = unix_errno; |
94 | 94 |
s->write = unix_write; |
... | ... | |
138 | 138 |
close(s->fd); |
139 | 139 |
|
140 | 140 |
err_after_alloc: |
141 |
qemu_free(s);
|
|
141 |
g_free(s);
|
|
142 | 142 |
return NULL; |
143 | 143 |
} |
144 | 144 |
|
Also available in: Unified diff