Spotted by Coverity. Signed-off-by: Markus Armbruster <arm...@redhat.com> --- qga/channel-posix.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/qga/channel-posix.c b/qga/channel-posix.c index 5579185..b530808 100644 --- a/qga/channel-posix.c +++ b/qga/channel-posix.c @@ -153,6 +153,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; -- 1.7.11.7