Skip to content

Commit

Permalink
[Minor] Avoid null dereference on error path
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Nov 5, 2021
1 parent f32f0c8 commit dbcbc2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libstat/stat_config.c
Expand Up @@ -278,6 +278,12 @@ rspamd_stat_init (struct rspamd_config *cfg, struct ev_loop *ev_base)
continue;
}
}
else {
/* This actually is not implemented so it should never happen */
g_free (cl);
cur = g_list_next (cur);
continue;
}

/* XXX:
* Here we get the first classifier tokenizer config as the only one
Expand Down

0 comments on commit dbcbc2a

Please sign in to comment.