Input/control: Fix memleak.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 30 Nov 2008 19:17:22 +0000 (20:17 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 30 Nov 2008 19:18:20 +0000 (20:18 +0100)
src/input/control.c

index 4d08bd8..4239a40 100644 (file)
@@ -145,6 +145,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
 
             int i_ret = input_item_AddInfo( p_input->p->input.p_item,
                                             psz_cat, psz_name, "%s", psz_value );
+            free( psz_value );
 
             if( !p_input->b_preparsing && !i_ret )
                 input_SendEventMetaInfo( p_input );