diff options
author | Phil Sutter <phil@nwl.cc> | 2019-12-02 22:57:40 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-12-03 18:34:20 +0100 |
commit | ba1b02594e8d05e4c791925a50f9309f89b55c80 (patch) | |
tree | 60e7ac7389efeaa945539a7e6b1925d507991cdc /src/flowtable.c | |
parent | b2388765e0c4405442faa13845419f6a35d0134c (diff) |
flowtable: Fix memleak in error path of nftnl_flowtable_parse_devs()
In error case, allocated dev_array is not freed.
Fixes: 7f99639dd9217 ("flowtable: device array dynamic allocation")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/flowtable.c')
-rw-r--r-- | src/flowtable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flowtable.c b/src/flowtable.c index 324e80f..db31943 100644 --- a/src/flowtable.c +++ b/src/flowtable.c @@ -419,6 +419,7 @@ static int nftnl_flowtable_parse_devs(struct nlattr *nest, err: while (len--) xfree(dev_array[len]); + xfree(dev_array); return -1; } |