summaryrefslogtreecommitdiff
path: root/io/channel-socket.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-08-11 18:11:04 +0100
committerDaniel P. Berrange <berrange@redhat.com>2017-01-23 15:32:18 +0000
commit937470bb5470825e781ae50e92ff973a6b54d80f (patch)
treeed7f4e397e7eaf753f2b0e26256ef5e899c17990 /io/channel-socket.c
parent6979a813f38d221bf68c3928a8d2b810cefc34b5 (diff)
downloadqemu-937470bb5470825e781ae50e92ff973a6b54d80f.tar.gz
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>
Diffstat (limited to 'io/channel-socket.c')
-rw-r--r--io/channel-socket.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/io/channel-socket.c b/io/channel-socket.c
index d7e03f6266..45df819a82 100644
--- a/io/channel-socket.c
+++ b/io/channel-socket.c
@@ -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;
}