From: Otto Moerbeek Date: Mon, 11 Nov 2019 13:19:41 +0000 (+0000) Subject: Cleanup some global resources. X-Git-Tag: dnsdist-1.4.0~7^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da966ae08f263f05eace22eb07fa7fa83c797cca;p=thirdparty%2Fpdns.git Cleanup some global resources. With this (on a short run): ==13452== HEAP SUMMARY: ==13452== in use at exit: 0 bytes in 0 blocks ==13452== total heap usage: 54,657 allocs, 54,657 frees, 14,008,997 bytes allocated --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index c6200a1e5f..116e0d6723 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -4319,6 +4319,10 @@ static int serviceMain(int argc, char*argv[]) ti.thread.join(); } } + +#ifdef HAVE_PROTOBUF + google::protobuf::ShutdownProtobufLibrary(); +#endif /* HAVE_PROTOBUF */ return 0; } @@ -4403,11 +4407,13 @@ try t_fdm=getMultiplexer(); + RecursorWebServer *rws = nullptr; + if(threadInfo.isHandler) { if(::arg().mustDo("webserver")) { g_log<