]> git.sesse.net Git - vlc/commitdiff
Do not leak the object name
authorRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 09:33:21 +0000 (11:33 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 09:33:21 +0000 (11:33 +0200)
src/modules/cache.c

index 61c60747ffdc856d99fec0559edb1c7d01d1e63b..00233efb88d959db408b6fdccdcd583936201605 100644 (file)
@@ -292,6 +292,7 @@ void CacheLoad( vlc_object_t *p_this )
         while( i_submodules-- )
         {
             module_t *p_module = vlc_submodule_create( pp_cache[i]->p_module );
+            free( p_module->psz_object_name );
             LOAD_STRING( p_module->psz_object_name );
             LOAD_STRING( p_module->psz_shortname );
             LOAD_STRING( p_module->psz_longname );