From 19424515ec8b3dcb133cef30bf10f8c6b19cc3aa Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 19 Sep 2021 12:08:48 +0100 Subject: [Minor] Fix some leaks on error paths Found by: coverity scan --- src/lua/lua_html.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/lua_html.cxx') diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx index b47a110d4..666b08a60 100644 --- a/src/lua/lua_html.cxx +++ b/src/lua/lua_html.cxx @@ -565,7 +565,7 @@ lua_html_tag_get_flags (lua_State *L) struct lua_html_tag *ltag = lua_check_html_tag (L, 1); gint i = 1; - if (ltag->tag) { + if (ltag && ltag->tag) { /* Push flags */ lua_createtable (L, 4, 0); if (ltag->tag->flags & FL_HREF) { -- cgit v1.2.3