Commit 32c16620 authored by Markus Armbruster's avatar Markus Armbruster Committed by Michael Roth
Browse files

qemu-ga: Plug fd leak on ga_channel_listen_accept() error path

parent 03ac10f1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ static gboolean ga_channel_listen_accept(GIOChannel *channel,
    ret = ga_channel_client_add(c, client_fd);
    if (ret) {
        g_warning("error setting up connection");
        close(client_fd);
        goto out;
    }
    accepted = true;