[vlc-devel] commit: Fix small memory leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jun 1 15:27:04 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun  1 16:28:42 2008 +0300| [586f3818972c895194167f06c3003b8a9236ca34]

Fix small memory leak

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

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

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 0e25c85..b1e1534 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -920,7 +920,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
 #endif
 
     /* If the user provided a plugin path, we add it to the list */
-    char * userpaths = config_GetPsz( p_this, "plugin-path" );
+    char *userpaths = config_GetPsz( p_this, "plugin-path" );
     char *paths_iter;
 
     for( paths_iter = userpaths; paths_iter; )
@@ -946,6 +946,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
     }
 
     vlc_array_destroy( arraypaths );
+    free( userpaths );
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list