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

index 3e082a423d0a4e0f7a3e7fb94701eb445665904e..0e1d90ca1947dfc8df06238bfd85a142120d204d 100644 (file)
@@ -4687,6 +4687,7 @@ testStoragePoolListAllVolumes(virStoragePoolPtr obj,
             if (tmp_vols[i])
                 virStorageVolFree(tmp_vols[i]);
         }
+        VIR_FREE(tmp_vols);
     }
 
     if (pool)