From d79909d1d188c52b42984fded1ccc5263525a1c3 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 10 Oct 2007 22:39:00 +0000 Subject: [PATCH] allocate marker data git-svn-id: http://ltt.polymtl.ca/svn@2645 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/tracefile.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index f6beea74..6ef5dca8 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1230,6 +1230,10 @@ LttTrace *ltt_trace_open(const gchar *pathname) t->num_cpu = group->len; + ret = allocate_marker_data(t); + if (!ret) + g_error("Error in allocating marker data"); + for(i=0; ilen; i++) { tf = &g_array_index (group, LttTracefile, i); if(ltt_process_facility_tracefile(tf)) @@ -1240,6 +1244,7 @@ LttTrace *ltt_trace_open(const gchar *pathname) /* Error handling */ facilities_error: + destroy_marker_data(t); find_error: g_datalist_clear(&t->tracefiles); open_error: -- 2.34.1