io: stop incrementing reference in qio_task_get_source
commit937470bb5470825e781ae50e92ff973a6b54d80f
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Aug 2016 17:11:04 +0000 (11 18:11 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 23 Jan 2017 15:32:18 +0000 (23 15:32 +0000)
treeed7f4e397e7eaf753f2b0e26256ef5e899c17990
parent6979a813f38d221bf68c3928a8d2b810cefc34b5
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>
include/io/task.h
io/channel-socket.c
io/channel-tls.c
io/task.c
tests/test-io-task.c