[vlc-commits] lua: fix self-introduced leak
Felix Paul Kühne
git at videolan.org
Thu Jul 4 18:47:06 CEST 2013
vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jul 4 18:45:44 2013 +0200| [b4ff6f69662d39961979613d7a8729c95df43766] | committer: Felix Paul Kühne
lua: fix self-introduced leak
refs b2cce4d84
(cherry picked from commit 4d7465b45d52c0ab412c7968e207f1fd89953760)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=b4ff6f69662d39961979613d7a8729c95df43766
---
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