"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gc.c" between
monit-5.25.3.tar.gz and monit-5.26.0.tar.gz

About: Monit is a utility for managing and monitoring processes, files, directories and filesystems (with automatic error recovery).

gc.c  (monit-5.25.3):gc.c  (monit-5.26.0)
skipping to change at line 289 skipping to change at line 289
Link_free(&((*s)->inf.net->stats)); Link_free(&((*s)->inf.net->stats));
FREE((*s)->inf.net); FREE((*s)->inf.net);
break; break;
case Service_Process: case Service_Process:
FREE((*s)->inf.process); FREE((*s)->inf.process);
break; break;
default: default:
break; break;
} }
FREE((*s)->name); FREE((*s)->name);
FREE((*s)->name_escaped);
FREE((*s)->path); FREE((*s)->path);
(*s)->next = NULL; (*s)->next = NULL;
FREE(*s); FREE(*s);
} }
static void _gc_servicegroup(ServiceGroup_T *sg) { static void _gc_servicegroup(ServiceGroup_T *sg) {
ASSERT(sg && *sg); ASSERT(sg && *sg);
if ((*sg)->next) if ((*sg)->next)
_gc_servicegroup(&(*sg)->next); _gc_servicegroup(&(*sg)->next);
List_free(&(*sg)->members); List_free(&(*sg)->members);
skipping to change at line 381 skipping to change at line 382
List_T l = (*p)->parameters.http.headers; List_T l = (*p)->parameters.http.headers;
while (List_length(l) > 0) { while (List_length(l) > 0) {
char *s = List_pop(l); char *s = List_pop(l);
FREE(s); FREE(s);
} }
List_free(&(*p)->parameters.http.headers); List_free(&(*p)->parameters.http.headers);
} }
} else if ((*p)->protocol->check == check_generic) { } else if ((*p)->protocol->check == check_generic) {
if ((*p)->parameters.generic.sendexpect) if ((*p)->parameters.generic.sendexpect)
_gcgeneric(&(*p)->parameters.generic.sendexpect); _gcgeneric(&(*p)->parameters.generic.sendexpect);
} else if ((*p)->protocol->check == check_mqtt) {
FREE((*p)->parameters.mqtt.username);
FREE((*p)->parameters.mqtt.password);
} else if ((*p)->protocol->check == check_mysql) { } else if ((*p)->protocol->check == check_mysql) {
FREE((*p)->parameters.mysql.username); FREE((*p)->parameters.mysql.username);
FREE((*p)->parameters.mysql.password); FREE((*p)->parameters.mysql.password);
} else if ((*p)->protocol->check == check_sip) { } else if ((*p)->protocol->check == check_sip) {
FREE((*p)->parameters.sip.target); FREE((*p)->parameters.sip.target);
} else if ((*p)->protocol->check == check_smtp) { } else if ((*p)->protocol->check == check_smtp) {
FREE((*p)->parameters.smtp.username); FREE((*p)->parameters.smtp.username);
FREE((*p)->parameters.smtp.password); FREE((*p)->parameters.smtp.password);
} else if ((*p)->protocol->check == check_radius) { } else if ((*p)->protocol->check == check_radius) {
FREE((*p)->parameters.radius.secret); FREE((*p)->parameters.radius.secret);
skipping to change at line 596 skipping to change at line 600
if ((*s)->action) if ((*s)->action)
_gc_eventaction(&(*s)->action); _gc_eventaction(&(*s)->action);
FREE(*s); FREE(*s);
} }
static void _gcpdl(Dependant_T *d) { static void _gcpdl(Dependant_T *d) {
ASSERT(d); ASSERT(d);
if ((*d)->next) if ((*d)->next)
_gcpdl(&(*d)->next); _gcpdl(&(*d)->next);
FREE((*d)->dependant); FREE((*d)->dependant);
FREE((*d)->dependant_escaped);
FREE(*d); FREE(*d);
} }
static void _gcgeneric(Generic_T *g) { static void _gcgeneric(Generic_T *g) {
ASSERT(g); ASSERT(g);
if ((*g)->next) if ((*g)->next)
_gcgeneric(&(*g)->next); _gcgeneric(&(*g)->next);
FREE((*g)->send); FREE((*g)->send);
if ((*g)->expect != NULL) if ((*g)->expect != NULL)
regfree((*g)->expect); regfree((*g)->expect);
 End of changes. 3 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)