mirror of https://gitee.com/openkylin/libvirt.git
test: Resource resource leak with 'tmp_vols'
This commit is contained in:
parent
af3262e26f
commit
159f59f34a
|
@ -4687,6 +4687,7 @@ testStoragePoolListAllVolumes(virStoragePoolPtr obj,
|
|||
if (tmp_vols[i])
|
||||
virStorageVolFree(tmp_vols[i]);
|
||||
}
|
||||
VIR_FREE(tmp_vols);
|
||||
}
|
||||
|
||||
if (pool)
|
||||
|
|
Loading…
Reference in New Issue