From: compudj Date: Wed, 10 Oct 2007 22:39:00 +0000 (+0000) Subject: allocate marker data X-Git-Tag: v0.12.20~844 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=d79909d1d188c52b42984fded1ccc5263525a1c3;p=lttv.git allocate marker data git-svn-id: http://ltt.polymtl.ca/svn@2645 04897980-b3bd-0310-b5e0-8ef037075253 --- 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: