ACK. On 09/03/2013 12:07 PM, Alon Levy wrote:
Signed-off-by: Alon Levy <alevy@xxxxxxxxxx> --- src/vdagent-virtio-port.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vdagent-virtio-port.c b/src/vdagent-virtio-port.c index bdd22d9..bacfa42 100644 --- a/src/vdagent-virtio-port.c +++ b/src/vdagent-virtio-port.c @@ -116,6 +116,9 @@ struct vdagent_virtio_port *vdagent_virtio_port_create(const char *portname, error: syslog(LOG_ERR, "open %s: %m", portname); + if (vport->fd != -1) { + close(vport->fd); + } free(vport); return NULL; }
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel