Skip to content
Commit 80fb34ed authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

io: fix possible double free of task error object



If a QIOTask has an error set and the calling code uses
qio_task_propagate_error() to steal the reference to
that Error object, the task would not clear its own
reference. This would lead to a double-free when
qio_task_free runs, if the caller had (correctly) freed
the Error object they now owned.

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent c7f1cf01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment