From: John Ferlan Date: Wed, 9 Jan 2013 14:54:15 +0000 (-0500) Subject: storage: Resource resource leak using 'tmp_vols' X-Git-Tag: v1.0.2-rc1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f45d8a263e34527ece88c37a456386ba085d41a;p=thirdparty%2Flibvirt.git storage: Resource resource leak using 'tmp_vols' --- diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index ff56f4f903..e98c18c208 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -1197,6 +1197,7 @@ storagePoolListAllVolumes(virStoragePoolPtr pool, if (tmp_vols[i]) virStorageVolFree(tmp_vols[i]); } + VIR_FREE(tmp_vols); } if (obj)