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 61c6074..00233ef 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 );