~ubuntu-branches/ubuntu/dapper/monit/dapper

« back to all changes in this revision

Viewing changes to gc.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Alfredsson
  • Date: 2005-11-11 21:04:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051111210432-uqstfeqxun0vvn1j
Tags: 1:4.6-1
New upstream release (Closes: #306259, #308369, #315638)

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
static void _gc_inf(Info_T *);
51
51
static void _gcpdl(Dependant_T *);
52
52
static void _gcso(Size_T *);
 
53
static void _gcmatch(Match_T *);
53
54
static void _gcchecksum(Checksum_T *);
54
55
static void _gcperm(Perm_T *);
55
56
static void _gcuid(Uid_T *);
67
68
 *  @author Jan-Henrik Haukeland, <hauk@tildeslash.com>
68
69
 *  @author Martin Pala, <martinp@tildeslash.com>
69
70
 *
70
 
 *  @version \$Id: gc.c,v 1.60 2005/01/24 01:04:36 hauk Exp $
 
71
 *  @version \$Id: gc.c,v 1.61 2005/08/05 09:38:09 chopp Exp $
71
72
 *
72
73
 *  @file
73
74
 */
173
174
  if((*s)->sizelist)
174
175
    _gcso(&(*s)->sizelist);
175
176
 
 
177
    if((*s)->matchlist)
 
178
    _gcmatch(&(*s)->matchlist);
 
179
 
176
180
  if((*s)->checksum)
177
181
    _gcchecksum(&(*s)->checksum);
178
182
 
435
439
 
436
440
}
437
441
 
 
442
static void _gcmatch(Match_T *s) {
 
443
  
 
444
  ASSERT(s);
 
445
 
 
446
  if((*s)->next)
 
447
    _gcmatch(&(*s)->next);
 
448
 
 
449
  if((*s)->action)
 
450
    _gc_eventaction(&(*s)->action);
 
451
 
 
452
  if((*s)->match_path)
 
453
      FREE((*s)->match_path);
 
454
  if((*s)->match_string)
 
455
      FREE((*s)->match_string);
 
456
#ifdef HAVE_REGEX_H
 
457
  if((*s)->regex_comp)
 
458
      FREE((*s)->regex_comp);
 
459
#endif
 
460
  
 
461
  FREE(*s);
 
462
 
 
463
}
 
464
 
438
465
 
439
466
static void _gcchecksum(Checksum_T *s) {
440
467