From: Peter Krempa Date: Thu, 11 Jun 2020 08:38:05 +0000 (+0200) Subject: vboxDomainScreenshot: Don't pass uninitialized 'screenData' to VIR_FREE X-Git-Tag: v6.5.0-rc1~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=515e62b32b623325e8c4f7760c5bccaef0972b4a;p=thirdparty%2Flibvirt.git vboxDomainScreenshot: Don't pass uninitialized 'screenData' to VIR_FREE If one of the early checks to get screen resolution fails 'screenData' would be passed to VIR_FREE uninitialized. Unfortunately the compiler isn't able to detect this when VIR_FREE is implemented using g_clear_pointer. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko