aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-19 12:08:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-19 12:08:48 +0100
commit19424515ec8b3dcb133cef30bf10f8c6b19cc3aa (patch)
treef38a63933f8164f0a39a60cf04f628d5eef52fcb /src/lua/lua_html.cxx
parentb5a184a0f8b376f3917f103b637a3db17925d2ae (diff)
downloadrspamd-19424515ec8b3dcb133cef30bf10f8c6b19cc3aa.tar.gz
rspamd-19424515ec8b3dcb133cef30bf10f8c6b19cc3aa.zip
[Minor] Fix some leaks on error paths
Found by: coverity scan
Diffstat (limited to 'src/lua/lua_html.cxx')
-rw-r--r--src/lua/lua_html.cxx2
1 files changed, 1 insertions, 1 deletions
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) {