mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-30 08:08:11 -05: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:
@@ -242,6 +242,7 @@ testQemuDiskXMLToJSONFakeSecrets(virStorageSource *src)
|
||||
|
||||
srcpriv->encinfo[0]->alias = g_strdup_printf("%s-encalias",
|
||||
NULLSTR(src->nodeformat));
|
||||
srcpriv->enccount = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user