Remove double mutex lock()

This commit is contained in:
Daniel P. Berrange 2008-01-30 18:21:13 +00:00
parent 03003499e7
commit 17ef6faa7f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Wed Jan 30 13:18:25 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/hash.c: Remove double mutex lock() flaw
Wed Jan 30 11:35:25 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/xend_internal.c: Fix SXPR -> XML conversion for USB

View File

@ -881,7 +881,7 @@ virUnrefDomain(virDomainPtr domain) {
return (0);
}
pthread_mutex_lock(&domain->conn->lock);
pthread_mutex_unlock(&domain->conn->lock);
return (refs);
}
@ -1013,7 +1013,7 @@ virUnrefNetwork(virNetworkPtr network) {
return (0);
}
pthread_mutex_lock(&network->conn->lock);
pthread_mutex_unlock(&network->conn->lock);
return (refs);
}