Skip to content

Commit

Permalink
fw/cfg: Fix possible memory leak while configuring http rules
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Vyazovik <xen@f-m.fm>
  • Loading branch information
s0nx committed Oct 4, 2022
1 parent 7a00fdf commit 8a1a794
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fw/http_tbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@ tfw_cfgop_http_rule(TfwCfgSpec *cs, TfwCfgEntry *e)
do { \
url->chunks[i].data = kmalloc(pos - begin + 1, GFP_KERNEL); \
if (!url->chunks[i].data) { \
kfree(url->chunks); \
T_ERR_NL("http_tbl: can't allocate memory for " \
"redirections\n"); \
return -EINVAL; \
Expand Down

0 comments on commit 8a1a794

Please sign in to comment.