Kaynağa Gözat

ipc_glue: Remove connection unref with no matching reference.

We don't reference the connection object on creation, so there
is on reason to dereference it on disconnect.

Signed-off-by: David Vossel <dvossel@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
David Vossel 12 yıl önce
ebeveyn
işleme
aa8e56a0fe
1 değiştirilmiş dosya ile 0 ekleme ve 2 silme
  1. 0 2
      exec/ipc_glue.c

+ 0 - 2
exec/ipc_glue.c

@@ -531,14 +531,12 @@ static void msg_send_or_queue(qb_ipcs_connection_t *conn, const struct iovec *io
 	}
 	outq_item = malloc (sizeof (struct outq_item));
 	if (outq_item == NULL) {
-		qb_ipcs_connection_unref(conn);
 		qb_ipcs_disconnect(conn);
 		return;
 	}
 	outq_item->msg = malloc (bytes_msg);
 	if (outq_item->msg == NULL) {
 		free (outq_item);
-		qb_ipcs_connection_unref(conn);
 		qb_ipcs_disconnect(conn);
 		return;
 	}