[vlc-devel] commit: Do not leak the object name ( Rafaël Carré )

git version control git at videolan.org
Mon May 5 11:32:16 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May  5 11:33:21 2008 +0200| [0451476b86e83f9f6d5ce9392572426c51f9e205]

Do not leak the object name

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0451476b86e83f9f6d5ce9392572426c51f9e205
---

 src/modules/cache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 61c6074..00233ef 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -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 );




More information about the vlc-devel mailing list