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