On 11/24/20 8:20 PM, Daniel Henrique Barboza wrote:
The 'video' pointer is only being freed on error path, meaning
that we're leaking it after each loop restart.

There are more opportunities for auto cleanups of virDomainVideoDef
pointers, so let's register AUTOPTR_CLEANUP_FUNC for it to use
g_autoptr() later on.

Signed-off-by: Daniel Henrique Barboza <danielhb...@gmail.com>
---
  src/conf/domain_conf.c | 4 +---
  src/conf/domain_conf.h | 1 +
  2 files changed, 2 insertions(+), 3 deletions(-)

Reviewed-by: Michal Privoznik <mpriv...@redhat.com>

Michal

Reply via email to