From 8a1a794c768e4bc98eaad6ce6bccbfe9693f5759 Mon Sep 17 00:00:00 2001 From: Petr Vyazovik Date: Mon, 12 Sep 2022 23:23:35 +0400 Subject: [PATCH] fw/cfg: Fix possible memory leak while configuring http rules Signed-off-by: Petr Vyazovik --- fw/http_tbl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fw/http_tbl.c b/fw/http_tbl.c index ef02a48c72..d7e19648a6 100644 --- a/fw/http_tbl.c +++ b/fw/http_tbl.c @@ -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; \