[vlc-devel] commit: Fix unlikely lock leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed May 28 19:30:13 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May 28 20:31:50 2008 +0300| [b0e0b794c961d183e6a64b3ad2b5ea4492810606]

Fix unlikely lock leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0e0b794c961d183e6a64b3ad2b5ea4492810606
---

 src/misc/objects.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 06177dc..91569a4 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -932,6 +932,7 @@ vlc_list_t * __vlc_list_find( vlc_object_t *p_this, int i_type, int i_mode )
         /* Check allocation was successful */
         if( p_list->i_count != i_count )
         {
+            vlc_mutex_unlock( &structure_lock );
             msg_Err( p_this, "list allocation failed!" );
             p_list->i_count = 0;
             break;




More information about the vlc-devel mailing list