dbus/connection: fix buffer leak on shutdown
Make sure we correctly free buffers if socket_queue() fails. Otherwise,
we'd leak the skb plus message.
@@ -272,6 +272,8 @@ int connection_queue(Connection *connection, User *user, uint64_t transaction_id
r = socket_queue(&connection->socket, user, skb);
if (r) {
+ socket_buffer_free(skb);
+
if (r == SOCKET_E_QUOTA)
return CONNECTION_E_QUOTA;
else
