examples/l3fwd-acl: fix possible memory leak
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 16 Dec 2014 17:05:08 +0000 (17:05 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 00:04:06 +0000 (01:04 +0100)
commit225979558a2ab53149153d1c6c51983703a1b44c
tree0bd02fde679f3baf2292fd5507479fbb1e47785a
parent6f78a6651f2c64b3a931a347628cd23e06ea4d99
examples/l3fwd-acl: fix possible memory leak

At error app_acl_init() can return without freeing dynamically allocated memory.
Not really a big problem, as if app_acl_init() fails,
then application would terminate immediately anyway.
Though it is a good coding practise to make a function to cleanup after itself.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/l3fwd-acl/main.c