Message ID | 1420738472-23267-25-git-send-email-mdroth@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index c3dc5c3..7252f64 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -508,6 +508,7 @@ static void ivshmem_read(void *opaque, const uint8_t *buf, int size) if (incoming_fd == -1) { fprintf(stderr, "could not allocate file descriptor %s\n", strerror(errno)); + close(tmp_fd); return; }