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

qemu-ga: Plug fd leak on ga_channel_open() error paths

parent 32c16620
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ static gboolean ga_channel_open(GAChannel *c, const gchar *path, GAChannelMethod
        ret = ga_channel_client_add(c, fd);
        if (ret) {
            g_critical("error adding channel to main loop");
            close(fd);
            return false;
        }
        break;