commit | c2d9a4293ced88d7dad7c35c893a31f49f8b64f5 | [log] [tgz] |
---|---|---|
author | Liping Zhang <liping.zhang@spreadtrum.com> | Mon Jul 18 20:44:15 2016 +0800 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Thu Jul 21 02:32:32 2016 +0200 |
tree | 991574c5890d8043667b50ff3d4389feee526142 | |
parent | 82de0be6862cdca2e6802267bda57cfc8844d3a7 [diff] |
netfilter: nft_log: fix possible memory leak if log expr init fail Suppose that we specify the NFTA_LOG_PREFIX, then NFTA_LOG_LEVEL and NFTA_LOG_GROUP are specified together or nf_logger_find_get call returns fail, i.e. expr init fail, memory leak will happen. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>