]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-posix.c
qga: fix 'driver' leak in guest-get-fsinfo
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 5 Jul 2018 16:16:29 +0000 (18:16 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 16 Jul 2018 17:51:32 +0000 (12:51 -0500)
commitbb23a7362a7942739f080990a53e44afc319e36c
tree943154b0216709d5f67621d848767d6030f8c6e3
parent102ad0a80f5110483efd06877c29c4236be267f9
qga: fix 'driver' leak in guest-get-fsinfo

'driver' is leaked when the loop is not broken.

Leak introduced by commit 743c71d03c20d64f2bae5fba6f26cdf5e4b1bda6,
spotted by ASAN.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c