itml: fix memleak.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 15 Jul 2009 19:32:32 +0000 (21:32 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 15 Jul 2009 20:07:34 +0000 (22:07 +0200)
modules/demux/playlist/itml.c

index dfa93ad..6dc87bf 100644 (file)
@@ -266,6 +266,7 @@ static bool parse_dict( demux_t *p_demux, input_item_t *p_input_item,
             /* special case: key */
             if( !strcmp( p_handler->name, "key" ) )
             {
+                free( psz_key );
                 psz_key = strdup( psz_value );
             }
             /* call the simple handler */