mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
tests: qemublocktest: fix memory leak
Set enccount to 1, so the cleanup function knows
there is something to be cleaned up.
Fixes: 1992ae40fa
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5589a3e1f3
commit
246d187a0f
@ -242,6 +242,7 @@ testQemuDiskXMLToJSONFakeSecrets(virStorageSource *src)
|
||||
|
||||
srcpriv->encinfo[0]->alias = g_strdup_printf("%s-encalias",
|
||||
NULLSTR(src->nodeformat));
|
||||
srcpriv->enccount = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user