]> git.ipfire.org Git - thirdparty/nftables.git/commit
main: Call nft_ctx_free() before exiting
authorPhil Sutter <phil@nwl.cc>
Wed, 21 Jun 2023 22:51:40 +0000 (00:51 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 4 Jul 2023 11:03:09 +0000 (13:03 +0200)
commit516a36c8d01fa03aafaf56a7eafa31ec0a9084db
treee2f0ab82e11fa5b5e16d5085693b2783a38c3206
parentb30364a7a94eacf80c81022309006d37479f2ae2
main: Call nft_ctx_free() before exiting

Introduce labels for failure and regular exit so all direct exit() calls
after nft_ctx allocation may be replaced by a single goto statement.

Simply drop that return call in interactive branch, code will continue
at 'out' label naturally.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/main.c