mirror of https://gitee.com/openkylin/libvirt.git
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.fakeCapsDel, virBitmapFree);
|
||||
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_pointer(&info->args.fakeNbdkitCaps, virBitmapFree);
|
||||
g_free(info);
|
||||
|
|
Loading…
Reference in New Issue