]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_acct: Fix memory leak
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 2 Jun 2014 01:42:58 +0000 (19:42 -0600)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 Jun 2014 08:46:52 +0000 (10:46 +0200)
commit503baaa35906281b7bb07fab9b3b7628d313f21b
tree36552dbf4d62f82ca9cb4e78f97fa13d555cfc21
parentc622a66c48dbfb44ac07dbdd71e46df40a4a48e5
netfilter: nfnetlink_acct: Fix memory leak

Allocation of memory need only to happen once, that is
after the proper checks on the NFACCT_FLAGS have been
done.  Otherwise the code can return without freeing
already allocated memory.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_acct.c