diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2018-11-06 15:13:21 +0000 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-11-10 15:07:53 +0100 |
| commit | 84ec9bfaf239b61bac3e43f708772937401e0e63 (patch) | |
| tree | c51ce911638e94b4a5d91079c0b85491eccf8901 /linux-user/openrisc/cpu_loop.c | |
| parent | c41868152a95db5f759bb7da491615eca99e9a40 (diff) | |
| download | focaccia-qemu-84ec9bfaf239b61bac3e43f708772937401e0e63.tar.gz focaccia-qemu-84ec9bfaf239b61bac3e43f708772937401e0e63.zip | |
slirp: Use g_new() to allocate sockets in socreate()
The slirp socreate() function can only fail if the attempt to malloc() the struct socket fails. Switch to using g_new() instead, which will allow us to remove the error-handling code from its callers. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'linux-user/openrisc/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions