diff --git a/build_bsd_full.sh b/build_bsd_full.sh index b7b35a84..6fab1a9a 100755 --- a/build_bsd_full.sh +++ b/build_bsd_full.sh @@ -1,5 +1,5 @@ #!/bin/sh -pkg install -y autoconf openssl +#pkg install -y autoconf openssl mkdir -p m4 set -e diff --git a/src/utun.c b/src/utun.c index a6b8f980..e535b429 100644 --- a/src/utun.c +++ b/src/utun.c @@ -409,13 +409,13 @@ int main(int argc, char *argv[]) { utun_instance_destroy(instance); } - u_report_unfreed_blocks(); - // Destroy uasync instance after instance is destroyed if (ua) { uasync_destroy(ua, 0); } + u_report_unfreed_blocks(); + remove_pidfile(args.pid_file); socket_platform_cleanup(); return 0;