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

git version control git at videolan.org
Wed Mar 26 19:58:26 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed Mar 26 20:58:46 2008 +0200| [16afc89353c2f61e3dd671bd842540cdf3627193]

Fix memory leak

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

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

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 29594e1..d11c3ff 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -691,10 +691,7 @@ found_shortcut:
         /* This assumes that p_this is the object which will be using the
          * module. That's not always the case ... but it is in most cases.
          */
-        if( psz_alias )
-            p_this->psz_object_name = strdup( psz_alias );
-        else
-            p_this->psz_object_name = strdup( p_module->psz_object_name );
+        p_this->psz_object_name = p_module->psz_object_name;
     }
 
     free( psz_shortcuts );




More information about the vlc-devel mailing list