aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-02-03 22:41:31 +0100
committerMichael Mann <mmann78@netscape.net>2017-02-10 13:31:01 +0000
commit59fc668845e57cf988226c3c19984c8bd83458d3 (patch)
treede0cdac0f4a6c37b75e605c7f0c6a73580caa4b4 /epan/column-utils.c
parentb54c43801112711dcba341f3eb4701678a0e1916 (diff)
Clean columns on exit.
Change-Id: I950295c35fc67193d9825ebc741da151ad99e077 Reviewed-on: https://code.wireshark.org/review/19941 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r--epan/column-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c
index 1e1f46e86b..175fbe7adb 100644
--- a/epan/column-utils.c
+++ b/epan/column-utils.c
@@ -122,7 +122,8 @@ col_cleanup(column_info *cinfo)
*/
g_free((gchar **)cinfo->col_expr.col_expr);
g_free(cinfo->col_expr.col_expr_val);
- g_regex_unref(cinfo->prime_regex);
+ if (cinfo->prime_regex)
+ g_regex_unref(cinfo->prime_regex);
}
/* Initialize the data structures for constructing column data. */