mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
io: stop incrementing reference in qio_task_get_source
Incrementing the reference in qio_task_get_source is not necessary, since we're not running concurrently with any other code touching the QIOTask. This minimizes chances of further memory leaks. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@ -168,7 +168,6 @@ static int qio_channel_socket_connect_worker(QIOTask *task,
|
||||
addr,
|
||||
errp);
|
||||
|
||||
object_unref(OBJECT(ioc));
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -231,7 +230,6 @@ static int qio_channel_socket_listen_worker(QIOTask *task,
|
||||
addr,
|
||||
errp);
|
||||
|
||||
object_unref(OBJECT(ioc));
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -309,7 +307,6 @@ static int qio_channel_socket_dgram_worker(QIOTask *task,
|
||||
data->remoteAddr,
|
||||
errp);
|
||||
|
||||
object_unref(OBJECT(ioc));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user