mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Remove double mutex lock()
This commit is contained in:
parent
03003499e7
commit
17ef6faa7f
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user