monit  5.28.0
About: Monit is a utility for managing and monitoring processes, files, directories and filesystems (with automatic error recovery).
  Fossies Dox: monit-5.28.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gc.c File Reference
#include "config.h"
#include "util/List.h"
#include "monit.h"
#include "protocol.h"
#include "ProcessTree.h"
#include "engine.h"
Include dependency graph for gc.c:

Go to the source code of this file.

Functions

static void _gc_service_list (Service_T *)
 
static void _gc_service (Service_T *)
 
static void _gc_servicegroup (ServiceGroup_T *)
 
static void _gc_mail_server (MailServer_T *)
 
static void _gcportlist (Port_T *)
 
static void _gcfilesystem (FileSystem_T *)
 
static void _gcicmp (Icmp_T *)
 
static void _gcpql (Resource_T *)
 
static void _gcptl (Timestamp_T *)
 
static void _gcuptimelist (Uptime_T *)
 
static void _gcparl (ActionRate_T *)
 
static void _gc_action (Action_T *)
 
static void _gc_eventaction (EventAction_T *)
 
static void _gcpdl (Dependant_T *)
 
static void _gcso (Size_T *)
 
static void _gclinkstatus (LinkStatus_T *)
 
static void _gclinkspeed (LinkSpeed_T *)
 
static void _gclinksaturation (LinkSaturation_T *)
 
static void _gcbandwidth (Bandwidth_T *)
 
static void _gcmatch (Match_T *)
 
static void _gcchecksum (Checksum_T *)
 
static void _gcperm (Perm_T *)
 
static void _gcstatus (Status_T *)
 
static void _gcuid (Uid_T *)
 
static void _gcgid (Gid_T *)
 
static void _gcpid (Pid_T *)
 
static void _gcppid (Pid_T *)
 
static void _gcfsflag (FsFlag_T *)
 
static void _gcnonexist (NonExist_T *)
 
static void _gcexist (Exist_T *)
 
static void _gcgeneric (Generic_T *)
 
static void _gcath (Auth_T *)
 
static void _gc_mmonit (Mmonit_T *)
 
static void _gc_url (URL_T *)
 
static void _gc_request (Request_T *)
 
static void _gcssloptions (SslOptions_T o)
 
static void _gcsecattr (SecurityAttribute_T *)
 
static void _gcfiledescriptors (Filedescriptors_T *)
 
void gc ()
 
void gc_mail_list (Mail_T *m)
 
void gccmd (command_t *c)
 
void gc_event (Event_T *e)
 

Detailed Description

Release allocated memory.

Definition in file gc.c.

Function Documentation

◆ _gc_action()

static void _gc_action ( Action_T a)
static

Definition at line 365 of file gc.c.

References ASSERT, FREE, and gccmd().

Referenced by _gc_eventaction().

◆ _gc_eventaction()

◆ _gc_mail_server()

static void _gc_mail_server ( MailServer_T s)
static

Definition at line 352 of file gc.c.

References _gcssloptions(), and FREE.

Referenced by gc().

◆ _gc_mmonit()

static void _gc_mmonit ( Mmonit_T recv)
static

Definition at line 690 of file gc.c.

References _gc_url(), _gcssloptions(), ASSERT, and FREE.

Referenced by gc().

◆ _gc_request()

static void _gc_request ( Request_T r)
static

Definition at line 328 of file gc.c.

References _gc_url(), ASSERT, and FREE.

Referenced by _gcportlist().

◆ _gc_service()

◆ _gc_service_list()

static void _gc_service_list ( Service_T s)
static

Definition at line 177 of file gc.c.

References _gc_service(), and ASSERT.

Referenced by gc().

◆ _gc_servicegroup()

static void _gc_servicegroup ( ServiceGroup_T sg)
static

Definition at line 318 of file gc.c.

References ASSERT, FREE, and List_free().

Referenced by gc().

◆ _gc_url()

static void _gc_url ( URL_T url)
static

Definition at line 339 of file gc.c.

References ASSERT, and FREE.

Referenced by _gc_mmonit(), and _gc_request().

◆ _gcath()

static void _gcath ( Auth_T c)
static

Definition at line 679 of file gc.c.

References ASSERT, and FREE.

Referenced by gc().

◆ _gcbandwidth()

static void _gcbandwidth ( Bandwidth_T b)
static

Definition at line 538 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcchecksum()

static void _gcchecksum ( Checksum_T s)
static

Definition at line 563 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcexist()

static void _gcexist ( Exist_T s)
static

Definition at line 645 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcfiledescriptors()

static void _gcfiledescriptors ( Filedescriptors_T o)
static

Definition at line 711 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcfilesystem()

static void _gcfilesystem ( FileSystem_T d)
static

Definition at line 438 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcfsflag()

static void _gcfsflag ( FsFlag_T s)
static

Definition at line 625 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcgeneric()

static void _gcgeneric ( Generic_T g)
static

Definition at line 666 of file gc.c.

References ASSERT, and FREE.

Referenced by _gcportlist().

◆ _gcgid()

static void _gcgid ( Gid_T s)
static

Definition at line 597 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcicmp()

static void _gcicmp ( Icmp_T i)
static

Definition at line 448 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gclinksaturation()

static void _gclinksaturation ( LinkSaturation_T l)
static

Definition at line 528 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gclinkspeed()

static void _gclinkspeed ( LinkSpeed_T l)
static

Definition at line 518 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gclinkstatus()

static void _gclinkstatus ( LinkStatus_T l)
static

Definition at line 508 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcmatch()

static void _gcmatch ( Match_T s)
static

Definition at line 547 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcnonexist()

static void _gcnonexist ( NonExist_T s)
static

Definition at line 635 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcparl()

static void _gcparl ( ActionRate_T ar)
static

Definition at line 489 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcpdl()

static void _gcpdl ( Dependant_T d)
static

Definition at line 655 of file gc.c.

References ASSERT, FREE, and StringBuffer_free().

Referenced by _gc_service().

◆ _gcperm()

static void _gcperm ( Perm_T s)
static

Definition at line 571 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcpid()

static void _gcpid ( Pid_T s)
static

Definition at line 605 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcportlist()

◆ _gcppid()

static void _gcppid ( Pid_T s)
static

Definition at line 615 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcpql()

static void _gcpql ( Resource_T q)
static

Definition at line 459 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcptl()

static void _gcptl ( Timestamp_T p)
static

Definition at line 469 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcsecattr()

static void _gcsecattr ( SecurityAttribute_T s)
static

Definition at line 700 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcso()

static void _gcso ( Size_T s)
static

Definition at line 499 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcssloptions()

◆ _gcstatus()

static void _gcstatus ( Status_T s)
static

Definition at line 579 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcuid()

static void _gcuid ( Uid_T s)
static

Definition at line 589 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ _gcuptimelist()

static void _gcuptimelist ( Uptime_T u)
static

Definition at line 479 of file gc.c.

References _gc_eventaction(), ASSERT, and FREE.

Referenced by _gc_service().

◆ gc()

◆ gc_event()

void gc_event ( Event_T e)

Definition at line 152 of file gc.c.

References ASSERT, FREE, and gc_event().

Referenced by _gc_service(), gc_event(), and Util_monitorUnset().

◆ gc_mail_list()

void gc_mail_list ( Mail_T m)

Definition at line 129 of file gc.c.

References Address_free(), ASSERT, FREE, and gc_mail_list().

Referenced by _gc_service(), _send(), gc(), and gc_mail_list().

◆ gccmd()

void gccmd ( command_t c)

Definition at line 144 of file gc.c.

References ASSERT, and FREE.

Referenced by _gc_action(), _gc_service(), and addmatchpath().