]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix locking issue in test driver VolLookupByPath
authorCole Robinson <crobinso@redhat.com>
Thu, 11 Dec 2008 15:04:09 +0000 (15:04 +0000)
committerCole Robinson <crobinso@redhat.com>
Thu, 11 Dec 2008 15:04:09 +0000 (15:04 +0000)
ChangeLog
src/test.c

index 17968d48f8f5e8326a9bd3297651fb4db6df4a61..feb0b3c04c49bf01a10a1f8a39e14e708a05ae39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 11 10:03:00 EST 2008 Cole Robinson <crobinso@redhat.com>
+
+       * src/test.c: Fix locking issue in test driver VolLookupByPath
+
 Thu Dec 11 10:00:54 EST 2008 Cole Robinson <crobinso@redhat.com>
 
        * libvirt.spec.in: Fix rpm build by installing logrotate config
index 257fc8a3cbd95db53a8490b4732b1cceb95c7db7..defa00fb859311fc160b438a216a855ca83d4d2f 100644 (file)
@@ -2909,8 +2909,8 @@ testStorageVolumeLookupByPath(virConnectPtr conn,
                 virStoragePoolObjUnlock(privconn->pools.objs[i]);
                 break;
             }
-            virStoragePoolObjUnlock(privconn->pools.objs[i]);
         }
+        virStoragePoolObjUnlock(privconn->pools.objs[i]);
     }
     testDriverUnlock(privconn);