]> git.sesse.net Git - vlc/blobdiff - modules/lua/vlc.c
Lua: do not allocate useless pipe on Win32
[vlc] / modules / lua / vlc.c
index d92b582127aecff00238e5c61c1db1153f49d30a..6f9b50528db293c636fa55e534fa4231899a8a8d 100644 (file)
@@ -554,8 +554,8 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
                         EnsureUTF8( psz_oldurl );
                         msg_Dbg( p_this, "meta-URL: %s", psz_oldurl );
                         input_item_SetURL ( p_input, psz_oldurl );
-                        free( psz_oldurl );
                     }
+                    free( psz_oldurl );
                     free( url );
 
                     /* copy the psz_name to the meta data, if "Title" is still empty */