From 515e62b32b623325e8c4f7760c5bccaef0972b4a Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 11 Jun 2020 10:38:05 +0200 Subject: [PATCH] vboxDomainScreenshot: Don't pass uninitialized 'screenData' to VIR_FREE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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