]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands.c
qga: fix leak of base64 decoded data on command error
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Aug 2021 13:10:29 +0000 (14:10 +0100)
committerMichael Roth <michael.roth@amd.com>
Tue, 10 Aug 2021 01:18:43 +0000 (20:18 -0500)
commit057489dd1586612b99b4b98d211bf7f0a9d6f0e4
tree3fb628e6180aa4c279ca7a1b5d61bf4334effc13
parentdee64246ded3aa7dbada68b96ce1c64e5bea327d
qga: fix leak of base64 decoded data on command error

If the guest command fails to be spawned, then we would leak the decoded
base64 input used for the command's stdin feed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
qga/commands.c