]> git.sesse.net Git - vlc/commitdiff
Fix memory leak
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 26 Mar 2008 18:58:46 +0000 (20:58 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 26 Mar 2008 18:59:01 +0000 (20:59 +0200)
src/modules/modules.c

index 29594e11ceb490d8c47ab653e1a7ea47ee239369..d11c3ff5459bcce3f334ec74a532d459a9f6985c 100644 (file)
@@ -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 );