generateFacility(f, fac, checksum);
g_free(fac->name);
+ free(fac->capname);
g_free(fac->description);
freeEvents(&fac->events);
sequence_dispose(&fac->events);
if(ret == ERANGE) goto range; /* ERANGE or EPERM */
else if(ret) goto fail;
- if(ltt_time_compare(time, tf->event.event_time) >= 0)
+ if(ltt_time_compare(time, tf->event.event_time) < 0)
goto found;
}
if(ret == ERANGE) goto range; /* ERANGE or EPERM */
else if(ret) goto fail;
- if(ltt_time_compare(time, tf->event.event_time) >= 0)
+ if(ltt_time_compare(time, tf->event.event_time) < 0)
break;
}
goto found;