/* Pi-hole: A black hole for Internet advertisements * (c) 2017 Pi-hole, LLC (https://pi-hole.net) * Network-wide ad blocking via your own hardware. * * FTL Engine * Log flush handling routines * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ #include "FTL.h" void pihole_log_flushed(bool message) { if(message) { logg("NOTICE: pihole.log has been flushed"); logg(" Resetting internal data structure"); logg(" Queries in memory before flushing: %i",counters.queries); } int i; // Free memory on allocated data structure // queries struct: No allocated entries free(queries); queries = NULL; // forwarded struct: Free allocated substructure for(i=0;i