mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
tests: qemublocktest: fix memory leak
Set enccount to 1, so the cleanup function knows there is something to be cleaned up. Fixes: 1992ae40fac90c315d0d8d1a9c6f880bd0a39b57 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…
x
Reference in New Issue
Block a user