[vlc-devel] [PATCH] src/input/input.c: Fix a tiny memory leak.

Julien 'Lta' BALLET elthariel at gmail.com
Wed May 21 10:49:27 CEST 2014


From: Julien 'Lta' BALLET <contact at lta.io>

---
 src/input/input.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index 0b8fae7..7e71d4e 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -310,7 +310,10 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
 
     p_input->p = calloc( 1, sizeof( input_thread_private_t ) );
     if( !p_input->p )
+    {
+        vlc_object_release( p_input );
         return NULL;
+    }
 
     /* Parse input options */
     vlc_mutex_lock( &p_item->lock );
-- 
1.9.2




More information about the vlc-devel mailing list