[vlc-commits] Lua intf: fix use-after-free

Rémi Denis-Courmont git at videolan.org
Tue May 19 20:46:49 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 19 21:41:57 2015 +0300| [0add93d0dd517f6dfe4bc8e8998788089cf96e61] | committer: Rémi Denis-Courmont

Lua intf: fix use-after-free

(cherry picked from commit f822d4a899433d46e3b5a37a83c08a956f285564)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=0add93d0dd517f6dfe4bc8e8998788089cf96e61
---

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

diff --git a/modules/lua/intf.c b/modules/lua/intf.c
index 841587f..c183530 100644
--- a/modules/lua/intf.c
+++ b/modules/lua/intf.c
@@ -390,8 +390,8 @@ void Close_LuaIntf( vlc_object_t *p_this )
     vlclua_fd_interrupt( &p_sys->dtable );
     vlc_join( p_sys->thread, NULL );
 
-    vlclua_fd_cleanup( &p_sys->dtable );
     lua_close( p_sys->L );
+    vlclua_fd_cleanup( &p_sys->dtable );
     free( p_sys->psz_filename );
     free( p_sys );
 }



More information about the vlc-commits mailing list