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

git version control git at videolan.org
Sun Jun 1 15:31:14 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun  1 16:32:54 2008 +0300| [6391721b5a50240dfc9da84d4bac3ba9759f33df]

Another memory leak

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

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

diff --git a/src/modules/modules.c b/src/modules/modules.c
index b1e1534..eeabe10 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -927,7 +927,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
     {
         path = copy_next_paths_token( paths_iter, &paths_iter );
         if( path )
-            vlc_array_append( arraypaths, strdup( path ) );
+            vlc_array_append( arraypaths, path );
     }
 
     count = vlc_array_count( arraypaths );




More information about the vlc-devel mailing list