vlc | branch: master | Rémi Duraffort <[email protected]> | 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);

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to