}
}
+void
+Adaptation::Config::DestroyConfig()
+{
+ FreeAccess();
+ FreeServiceSet();
+
+ // invalidate each service so that it can be deleted when refcount=0
+ while (!AllServices().empty()) {
+ AllServices().back()->invalidate();
+ AllServices().pop_back();
+ }
+}
+
void
Adaptation::Config::DumpAccess(StoreEntry *entry, const char *name)
{
// with global arrays shared by those individual configs
Adaptation::Config::~Config()
{
- FreeAccess();
- FreeServiceSet();
-
- // invalidate each service so that it can be deleted when refcount=0
- while (!AllServices().empty()) {
- AllServices().back()->invalidate();
- AllServices().pop_back();
- }
-
+ Adaptation::Config::DestroyConfig();
freeService();
}
{
public:
static void Finalize(bool enable);
+ static void DestroyConfig();
static void ParseServiceSet(void);
static void FreeServiceSet(void);
method = parseMethod(method_point);
point = parseVectPoint(method_point);
+ safe_free(method_point);
debugs(3, 5, HERE << cfg_filename << ':' << config_lineno << ": " <<
"service_configConfig is " << methodStr() << "_" << vectPointStr());