]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: Resource resource leak using 'tmp_vols'
authorJohn Ferlan <jferlan@redhat.com>
Wed, 9 Jan 2013 14:54:15 +0000 (09:54 -0500)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Jan 2013 13:50:21 +0000 (14:50 +0100)
src/storage/storage_driver.c

index ff56f4f903b7c93a74a0f0bebcd27fd7c7c937b8..e98c18c20897f81805c42ae07b74700e9e910d7e 100644 (file)
@@ -1197,6 +1197,7 @@ storagePoolListAllVolumes(virStoragePoolPtr pool,
             if (tmp_vols[i])
                 virStorageVolFree(tmp_vols[i]);
         }
+        VIR_FREE(tmp_vols);
     }
 
     if (obj)