[vlc-commits] commit: luasd: Fix a leak. (Pierre d'Herbemont )

git version control git at videolan.org
Thu Mar 4 20:46:33 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Mar  4 20:42:22 2010 +0100| [138f082938a7f506c126e56176e46c2bff5de378] | committer: Pierre d'Herbemont 

luasd: Fix a leak.

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

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

diff --git a/modules/misc/lua/services_discovery.c b/modules/misc/lua/services_discovery.c
index d5f3649..0b33f93 100644
--- a/modules/misc/lua/services_discovery.c
+++ b/modules/misc/lua/services_discovery.c
@@ -57,7 +57,7 @@ int Open_LuaSD( vlc_object_t *p_this )
     services_discovery_t *p_sd = ( services_discovery_t * )p_this;
     services_discovery_sys_t *p_sys;
     lua_State *L = NULL;
-    char *psz_name = strdup(p_sd->psz_name);
+    char *psz_name = NULL;
 
     if( !strcmp(p_sd->psz_name, "lua"))
     {



More information about the vlc-commits mailing list