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

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