[libvirt] [PATCH] qemu: blockjob: Don't leak 'cfg' from qemuBlockJobEventProcessLegacy

Ján Tomko jtomko at redhat.com
Thu Jun 27 08:07:37 UTC 2019


On Thu, Jun 27, 2019 at 09:23:25AM +0200, Peter Krempa wrote:
>Since c257352797a a reference of 'cfg' would be leaked if the function
>does not need to process anything. Fix it by using VIR_AUTOUNREF.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_blockjob.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190627/b67a5cfe/attachment-0001.sig>


More information about the libvir-list mailing list