From: compudj Date: Wed, 8 Feb 2006 16:18:38 +0000 (+0000) Subject: fix error handling in tree parsing for filter X-Git-Tag: v0.12.20~1961 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fb04197e7f9e751cac124b35461779ff3e39e182;p=lttv.git fix error handling in tree parsing for filter git-svn-id: http://ltt.polymtl.ca/svn@1528 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index dfbcaba8..abdeb464 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -229,6 +229,9 @@ lttv_simple_expression_assign_field(GPtrArray* fp, LttvSimpleExpression* se) { se->field = LTTV_FILTER_EVENT_FIELD; } } else { + g_string_free(f,TRUE); + f=g_ptr_array_remove_index(fp,0); + g_warning("Unrecognized field in filter string"); }