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
ti.thread.join();
}
}
+
+#ifdef HAVE_PROTOBUF
+ google::protobuf::ShutdownProtobufLibrary();
+#endif /* HAVE_PROTOBUF */
return 0;
}
t_fdm=getMultiplexer();
+ RecursorWebServer *rws = nullptr;
+
if(threadInfo.isHandler) {
if(::arg().mustDo("webserver")) {
g_log<<Logger::Warning << "Enabling web server" << endl;
try {
- new RecursorWebServer(t_fdm);
+ rws = new RecursorWebServer(t_fdm);
}
catch(PDNSException &e) {
g_log<<Logger::Error<<"Exception: "<<e.reason<<endl;
}
}
}
+ delete rws;
+ delete t_fdm;
return 0;
}
catch(PDNSException &ae) {