From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtifH-0005Rq-I4 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 12:45:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtifE-0004FO-V4 for qemu-devel@nongnu.org; Fri, 11 Jan 2013 12:45:11 -0500 Received: from mail-ia0-f181.google.com ([209.85.210.181]:36350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtifE-0004D7-OS for qemu-devel@nongnu.org; Fri, 11 Jan 2013 12:45:08 -0500 Received: by mail-ia0-f181.google.com with SMTP id s32so1787316iak.12 for ; Fri, 11 Jan 2013 09:45:07 -0800 (PST) Sender: fluxion Date: Fri, 11 Jan 2013 11:44:06 -0600 From: mdroth Message-ID: <20130111174406.GK1543@vm> References: <1357899902-5316-1-git-send-email-armbru@redhat.com> <1357899902-5316-5-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1357899902-5316-5-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH 4/6] qemu-ga: Plug fd leak on ga_channel_listen_accept() error path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com On Fri, Jan 11, 2013 at 11:25:00AM +0100, Markus Armbruster wrote: > Spotted by Coverity. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/channel-posix.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/qga/channel-posix.c b/qga/channel-posix.c > index d4fd628..5579185 100644 > --- a/qga/channel-posix.c > +++ b/qga/channel-posix.c > @@ -45,6 +45,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; > -- > 1.7.11.7 >