testutilsqemu: Don't leak struct testQemuArgs::vdpafds

Allocated in testQemuInfoSetArgs(), the vdpafds member of
testQemuArgs is never freed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2024-05-03 14:37:23 +02:00
parent ffebb557f1
commit 0c05f336c7

View File

@ -966,6 +966,7 @@ testQemuInfoFree(testQemuInfo *info)
g_clear_pointer(&info->args.fakeCapsAdd, virBitmapFree); g_clear_pointer(&info->args.fakeCapsAdd, virBitmapFree);
g_clear_pointer(&info->args.fakeCapsDel, virBitmapFree); g_clear_pointer(&info->args.fakeCapsDel, virBitmapFree);
g_clear_pointer(&info->args.fds, g_hash_table_unref); g_clear_pointer(&info->args.fds, g_hash_table_unref);
g_clear_pointer(&info->args.vdpafds, g_hash_table_unref);
g_clear_object(&info->nbdkitCaps); g_clear_object(&info->nbdkitCaps);
g_clear_pointer(&info->args.fakeNbdkitCaps, virBitmapFree); g_clear_pointer(&info->args.fakeNbdkitCaps, virBitmapFree);
g_free(info); g_free(info);