Revision 7267c094 bsd-user/syscall.c
b/bsd-user/syscall.c | ||
---|---|---|
231 | 231 |
void *hnamep, *holdp, *hnewp = NULL; |
232 | 232 |
size_t holdlen; |
233 | 233 |
abi_ulong oldlen = 0; |
234 |
int32_t *snamep = qemu_malloc(sizeof(int32_t) * namelen), *p, *q, i;
|
|
234 |
int32_t *snamep = g_malloc(sizeof(int32_t) * namelen), *p, *q, i;
|
|
235 | 235 |
uint32_t kind = 0; |
236 | 236 |
|
237 | 237 |
if (oldlenp) |
... | ... | |
255 | 255 |
unlock_user(holdp, oldp, holdlen); |
256 | 256 |
if (hnewp) |
257 | 257 |
unlock_user(hnewp, newp, 0); |
258 |
qemu_free(snamep);
|
|
258 |
g_free(snamep);
|
|
259 | 259 |
return ret; |
260 | 260 |
} |
261 | 261 |
#endif |
Also available in: Unified diff