This is just to make valgrind and friends happy, leverage deinit_proxy()
for checks_fe proxy upon deinit to ensure proper cleanup.
We check the presence of proxy->id to know if it was initialized because
we cannot rely on a pointer for that.
return ERR_NONE;
}
+/* called during deinit */
+static void clear_checks()
+{
+ if (checks_fe.id)
+ deinit_proxy(&checks_fe);
+}
/*
* Return value:
REGISTER_SERVER_DEINIT(deinit_srv_check);
REGISTER_SERVER_DEINIT(deinit_srv_agent_check);
+REGISTER_POST_DEINIT(clear_checks);
/* perform minimal initializations */
static void init_checks()