[vlc-commits] lua: fix self-introduced leak

Felix Paul Kühne git at videolan.org
Thu Jul 4 18:45:47 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jul  4 18:45:44 2013 +0200| [4d7465b45d52c0ab412c7968e207f1fd89953760] | committer: Felix Paul Kühne

lua: fix self-introduced leak

refs b2cce4d84

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

 modules/lua/vlc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index d92b582..6f9b505 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -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 */



More information about the vlc-commits mailing list