fix nftables shutdown_redirect()

see #481
This commit is contained in:
Thomas Bernard 2020-10-22 21:19:37 +02:00
parent 3a17dea056
commit 68cc35156e
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 5 additions and 4 deletions

View File

@ -3084,13 +3084,14 @@ shutdown:
free(snatpmp);
#endif
free(snotify);
closelog();
#ifndef DISABLE_CONFIG_FILE
freeoptions();
#endif
shutdown_redirect();
#ifndef DISABLE_CONFIG_FILE
/* in some case shutdown_redirect() may need the option values */
freeoptions();
#endif
closelog();
return 0;
}