From: compudj Date: Fri, 17 Mar 2006 17:42:02 +0000 (+0000) Subject: update filter X-Git-Tag: v0.12.20~1780 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c8f08e2687664d476633d1178c94bf7aeb7af302;p=lttv.git update filter git-svn-id: http://ltt.polymtl.ca/svn@1709 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index 4025e4da..78882d69 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -229,8 +229,12 @@ lttv_simple_expression_assign_field(GPtrArray* fp, LttvSimpleExpression* se) { } else if(!g_strcasecmp(f->str,"field") ) { se->field = LTTV_FILTER_EVENT_FIELD; + g_string_free(f,TRUE); + f=g_ptr_array_remove_index(fp,0); } else { + g_string_free(f,TRUE); + f=g_ptr_array_remove_index(fp,0); g_warning("Unknown event filter subtype %s", f->str); } } else {