storage: Resource resource leak using 'tmp_vols'

This commit is contained in:
John Ferlan 2013-01-09 09:54:15 -05:00 committed by Ján Tomko
parent 159f59f34a
commit 0f45d8a263

View File

@ -1197,6 +1197,7 @@ storagePoolListAllVolumes(virStoragePoolPtr pool,
if (tmp_vols[i])
virStorageVolFree(tmp_vols[i]);
}
VIR_FREE(tmp_vols);
}
if (obj)