netfilter: nft_compat: call {target, match}->destroy() to cleanup entry
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 Jun 2014 12:27:46 +0000 (14:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Jun 2014 11:08:04 +0000 (13:08 +0200)
commit3d9b142131ef0cde259dbac5cce36f570fcb4902
tree2c33862bf562b7dc54bad8fe1fa55859e757806e
parentac904ac835ac7879a9374dc3ef1e5cb75d9c7ceb
netfilter: nft_compat: call {target, match}->destroy() to cleanup entry

Otherwise, the reference to external objects (eg. modules) are not
released when the rules are removed.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c