[vlc-commits] src/input/input.c: Fix a tiny memory leak.
Julien 'Lta' BALLET
git at videolan.org
Wed May 21 16:43:28 CEST 2014
vlc | branch: master | Julien 'Lta' BALLET <contact at lta.io> | Wed May 21 07:49:27 2014 +0000| [568fc27952c0143cdec3c0018cb356616880daa1] | committer: Jean-Baptiste Kempf
src/input/input.c: Fix a tiny memory leak.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=568fc27952c0143cdec3c0018cb356616880daa1
---
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 );
More information about the vlc-commits
mailing list