diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-08-11 18:11:04 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2017-01-23 15:32:18 +0000 |
commit | 937470bb5470825e781ae50e92ff973a6b54d80f (patch) | |
tree | ed7f4e397e7eaf753f2b0e26256ef5e899c17990 /io/channel-tls.c | |
parent | 6979a813f38d221bf68c3928a8d2b810cefc34b5 (diff) | |
download | qemu-937470bb5470825e781ae50e92ff973a6b54d80f.zip qemu-937470bb5470825e781ae50e92ff973a6b54d80f.tar.gz qemu-937470bb5470825e781ae50e92ff973a6b54d80f.tar.bz2 |
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-tls.c')
-rw-r--r-- | io/channel-tls.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/io/channel-tls.c b/io/channel-tls.c index d24dc8c..cf3bcca 100644 --- a/io/channel-tls.c +++ b/io/channel-tls.c @@ -200,8 +200,6 @@ static gboolean qio_channel_tls_handshake_io(QIOChannel *ioc, qio_channel_tls_handshake_task( tioc, task); - object_unref(OBJECT(tioc)); - return FALSE; } |