From: compudj Date: Tue, 30 Aug 2005 21:59:57 +0000 (+0000) Subject: major ltt time seek bugfix X-Git-Tag: v0.12.20~2398 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d2ace3a93efa61ccde967a32626090c77e20b583;p=lttv.git major ltt time seek bugfix git-svn-id: http://ltt.polymtl.ca/svn@1091 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/facility.c b/ltt/branches/poly/ltt/facility.c index 01100f66..0da437c3 100644 --- a/ltt/branches/poly/ltt/facility.c +++ b/ltt/branches/poly/ltt/facility.c @@ -126,6 +126,7 @@ int ltt_facility_open(LttFacility *f, LttTrace * t, gchar * pathname) generateFacility(f, fac, checksum); g_free(fac->name); + free(fac->capname); g_free(fac->description); freeEvents(&fac->events); sequence_dispose(&fac->events); diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index d3c65373..fc02bfed 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1431,7 +1431,7 @@ int ltt_tracefile_seek_time(LttTracefile *tf, LttTime time) 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; } @@ -1448,7 +1448,7 @@ int ltt_tracefile_seek_time(LttTracefile *tf, LttTime time) 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;