netfilter: nf_tables: Release memory obtained by kasprintf
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 20 Sep 2017 07:01:28 +0000 (12:31 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Oct 2017 13:21:19 +0000 (15:21 +0200)
commite63aaaa6be54c956b9603590ea436b003407bb3e
tree41dc24bdde20c418bfeac618d2f2aa910f374f40
parente6b72ee88a56bcfe63f72e9c30766484c45bec72
netfilter: nf_tables: Release memory obtained by kasprintf

Free memory region, if nf_tables_set_alloc_name is not successful.

Fixes: 387454901bd6 ("netfilter: nf_tables: Allow set names of up to 255 chars")
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c