dbus-proxy: Fix leak in setup phase

Sometimes we get an EAGAIN error in the due to the socket being
nonblocking. In the setup phase we just allocated the new buffer
and this causes a leak. Free it in this case.
tingping/wmclass
Alexander Larsson 2017-03-31 13:04:43 +02:00
parent a87c15da87
commit 6a63a905bf
1 changed files with 5 additions and 1 deletions

View File

@ -2233,7 +2233,11 @@ side_in_cb (GSocket *socket, GIOCondition condition, gpointer user_data)
buffer = side->current_read_buffer;
if (!buffer_read (side, buffer, socket))
break;
{
if (buffer != side->current_read_buffer)
buffer_unref (buffer);
break;
}
if (!client->authenticated)
{