diff options
| author | Peter Maydell | 2018-11-06 16:13:21 +0100 |
|---|---|---|
| committer | Samuel Thibault | 2018-11-10 15:07:53 +0100 |
| commit | 84ec9bfaf239b61bac3e43f708772937401e0e63 (patch) | |
| tree | c51ce911638e94b4a5d91079c0b85491eccf8901 /include/exec | |
| parent | slirp: Don't pass possibly -1 fd to send() (diff) | |
| download | qemu-84ec9bfaf239b61bac3e43f708772937401e0e63.tar.gz qemu-84ec9bfaf239b61bac3e43f708772937401e0e63.tar.xz 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 'include/exec')
0 files changed, 0 insertions, 0 deletions
