[vlc-devel] commit: Remove a memleak ( Rafaël Carré )

git version control git at videolan.org
Mon May 5 09:51:21 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May  5 09:51:44 2008 +0200| [f83f9df3a720bcc39e027511e5a8ce2fd8614a61]

Remove a memleak

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

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

diff --git a/src/libvlc-common.c b/src/libvlc-common.c
index 59edcb4..f52802f 100644
--- a/src/libvlc-common.c
+++ b/src/libvlc-common.c
@@ -250,7 +250,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     /* Get the executable name (similar to the basename command) */
     if( i_argc > 0 )
     {
-        const char *exe = strdup( ppsz_argv[0] );
+        const char *exe = ppsz_argv[0];
         const char *tmp = exe;
         while( *exe )
         {




More information about the vlc-devel mailing list