]> git.proxmox.com Git - mirror_qemu.git/commit - util/log.c
Fix double free issue in qemu_set_log_filename().
authorRobert Foley <robert.foley@linaro.org>
Mon, 18 Nov 2019 21:15:23 +0000 (16:15 -0500)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 18 Dec 2019 20:18:02 +0000 (20:18 +0000)
commit0f516ca4767042aec8716369d6d62436fa10593a
treed9e1825157b43429b55c849092fe273ea997a0d9
parentbc4486fb233573e77b6e9ad6d6379afb5e37ad8c
Fix double free issue in qemu_set_log_filename().

After freeing the logfilename, we set logfilename to NULL, in case of an
error which returns without setting logfilename.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20191118211528.3221-2-robert.foley@linaro.org>
util/log.c