diff options
| author | Colin Ian King <colin.king@canonical.com> | 2018-05-09 13:22:56 +0100 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-14 00:21:59 +0200 |
| commit | f0dfd7a2b35b02030949100247d851b793cb275f (patch) | |
| tree | 0bc300372afa47f3ccda569904fccf12bc6c2df3 /tools/perf/scripts/python | |
| parent | netfilter: nf_tables: bogus EBUSY in chain deletions (diff) | |
| download | linux-f0dfd7a2b35b02030949100247d851b793cb275f.tar.gz linux-f0dfd7a2b35b02030949100247d851b793cb275f.zip | |
netfilter: nf_tables: fix memory leak on error exit return
Currently the -EBUSY error return path is not free'ing resources
allocated earlier, leaving a memory leak. Fix this by exiting via the
error exit label err5 that performs the necessary resource clean
up.
Detected by CoverityScan, CID#1432975 ("Resource leak")
Fixes: 9744a6fcefcb ("netfilter: nf_tables: check if same extensions are set when adding elements")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
