/[monit]/monit/gc.c
ViewVC logotype

Diff of /monit/gc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.61 by chopp, Fri Aug 5 09:38:09 2005 UTC revision 1.62 by martinp, Sat Nov 5 14:09:00 2005 UTC
# Line 103  void gc() { Line 103  void gc() {
103    if(Run.collectors)    if(Run.collectors)
104      _gc_collector(&Run.collectors);      _gc_collector(&Run.collectors);
105    
106      if(Run.eventlist)
107        _gc_event(&Run.eventlist);
108      
109      FREE(Run.eventlist_dir);
110    FREE(Run.mygroup);    FREE(Run.mygroup);
111    FREE(Run.httpsslpem);    FREE(Run.httpsslpem);
112    FREE(Run.httpsslclientpem);    FREE(Run.httpsslclientpem);
# Line 223  static void _gc_service(Service_T *s) { Line 227  static void _gc_service(Service_T *s) {
227      _gc_event(&(*s)->eventlist);      _gc_event(&(*s)->eventlist);
228        
229    FREE((*s)->name);    FREE((*s)->name);
   FREE((*s)->path);  
230    FREE((*s)->group);    FREE((*s)->group);
231      FREE((*s)->path);
232        
233    (*s)->next= NULL;    (*s)->next= NULL;
234    
# Line 322  static void _gc_event(Event_T *e) { Line 326  static void _gc_event(Event_T *e) {
326      _gc_event(&(*e)->next);      _gc_event(&(*e)->next);
327    
328    pthread_mutex_destroy(&(*e)->mutex);    pthread_mutex_destroy(&(*e)->mutex);
329    
330    (*e)->action= NULL;    (*e)->action= NULL;
331      FREE((*e)->source);
332      FREE((*e)->group);
333    FREE((*e)->message);    FREE((*e)->message);
334    FREE(*e);    FREE(*e);
335    

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26