]> git.sesse.net Git - vlc/commitdiff
lua: fix self-introduced leak
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 4 Jul 2013 16:45:44 +0000 (18:45 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 4 Jul 2013 16:45:44 +0000 (18:45 +0200)
refs b2cce4d84

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 */