From: siboud Date: Sat, 9 Apr 2005 21:48:08 +0000 (+0000) Subject: filter core: X-Git-Tag: v0.12.20~2567 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=786c5c3b1be5e8f6fc63e07dea07482e4fb4fd1d;p=lttv.git filter core: - fixed minor bug in memory desallocation (lttv_simple_expression_destroy()) git-svn-id: http://ltt.polymtl.ca/svn@922 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/doxyfile b/ltt/branches/poly/doxyfile index b1f3cc70..9aa6785c 100644 --- a/ltt/branches/poly/doxyfile +++ b/ltt/branches/poly/doxyfile @@ -472,7 +472,7 @@ RECURSIVE = YES # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. -EXCLUDE = ./lttv/modules/examples/ +EXCLUDE = ./lttv/modules/examples/ # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded @@ -856,7 +856,7 @@ MAN_EXTENSION = .3 # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. -MAN_LINKS = NO +MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index db3ee1c8..bed1b489 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -421,14 +421,14 @@ void lttv_simple_expression_destroy(LttvSimpleExpression* se) { // g_free(se->value); - switch(se->field) { - case LTTV_FILTER_TRACE_NAME: - case LTTV_FILTER_TRACEFILE_NAME: - case LTTV_FILTER_STATE_P_NAME: - case LTTV_FILTER_EVENT_NAME: - g_free(se->value.v_string); - break; - } +// switch(se->field) { +// case LTTV_FILTER_TRACE_NAME: +// case LTTV_FILTER_TRACEFILE_NAME: +// case LTTV_FILTER_STATE_P_NAME: +// case LTTV_FILTER_EVENT_NAME: +// g_free(se->value.v_string); +// break; +// } g_free(se); } @@ -1452,7 +1452,8 @@ gboolean lttv_filter_append_expression(LttvFilter* filter, const char *expressio g_string_append_c(s,'&'); } g_string_append(s,expression); - + + g_free(filter->expression); filter->expression = g_string_free(s,FALSE); /* TRUE if construction of tree proceeded without errors */