[vlc-commits] Fix missing unlock (cid #1047159)
Rémi Duraffort
git at videolan.org
Sat Jul 13 10:06:18 CEST 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 09:58:43 2013 +0200| [121c6b90c774fd64ad5510d7a626eee423d2aeb0] | committer: Rémi Duraffort
Fix missing unlock (cid #1047159)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=121c6b90c774fd64ad5510d7a626eee423d2aeb0
---
src/network/rootbind.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/network/rootbind.c b/src/network/rootbind.c
index 0d5d635..89d9328 100644
--- a/src/network/rootbind.c
+++ b/src/network/rootbind.c
@@ -167,7 +167,10 @@ int rootwrap_bind (int family, int socktype, int protocol,
pthread_mutex_lock (&mutex);
if (send (sock, &ss, sizeof (ss), 0) != sizeof (ss))
+ {
+ pthread_mutex_unlock (&mutex);
return -1;
+ }
fd = recv_fd (sock);
pthread_mutex_unlock (&mutex);
More information about the vlc-commits
mailing list