Blame SOURCES/0002-flowtable-Fix-memleak-in-error-path-of-nftnl_flowtab.patch

763a55
From e744735b92ee312cd2ad08776f3c56962ab53710 Mon Sep 17 00:00:00 2001
763a55
From: Phil Sutter <psutter@redhat.com>
763a55
Date: Fri, 6 Dec 2019 17:31:16 +0100
763a55
Subject: [PATCH] flowtable: Fix memleak in error path of
763a55
 nftnl_flowtable_parse_devs()
763a55
763a55
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1778952
763a55
Upstream Status: libnftnl commit ba1b02594e8d0
763a55
763a55
commit ba1b02594e8d05e4c791925a50f9309f89b55c80
763a55
Author: Phil Sutter <phil@nwl.cc>
763a55
Date:   Mon Dec 2 22:57:40 2019 +0100
763a55
763a55
    flowtable: Fix memleak in error path of nftnl_flowtable_parse_devs()
763a55
763a55
    In error case, allocated dev_array is not freed.
763a55
763a55
    Fixes: 7f99639dd9217 ("flowtable: device array dynamic allocation")
763a55
    Signed-off-by: Phil Sutter <phil@nwl.cc>
763a55
    Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
763a55
---
763a55
 src/flowtable.c | 1 +
763a55
 1 file changed, 1 insertion(+)
763a55
763a55
diff --git a/src/flowtable.c b/src/flowtable.c
763a55
index 324e80f..db31943 100644
763a55
--- a/src/flowtable.c
763a55
+++ b/src/flowtable.c
763a55
@@ -419,6 +419,7 @@ static int nftnl_flowtable_parse_devs(struct nlattr *nest,
763a55
 err:
763a55
 	while (len--)
763a55
 		xfree(dev_array[len]);
763a55
+	xfree(dev_array);
763a55
 	return -1;
763a55
 }
763a55
 
763a55
-- 
763a55
1.8.3.1
763a55