forked from Mirrors/flatpak-builder
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
parent
a87c15da87
commit
6a63a905bf
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue