mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
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:
parent
ffebb557f1
commit
0c05f336c7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user