src/input/input.c: Fix a tiny memory leak.
authorJulien 'Lta' BALLET <contact@lta.io>
Wed, 21 May 2014 07:49:27 +0000 (07:49 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 May 2014 14:38:37 +0000 (16:38 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/input/input.c

index 0b8fae7..7e71d4e 100644 (file)
@@ -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 );