test: Resource resource leak with 'tmp_vols'

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

View File

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