diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2008-03-10 07:37:14 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2008-03-10 07:37:14 +0000 |
commit | b0c33bd25b65200af0f0ad27acbb610baabbae4e (patch) | |
tree | ed7b2b4dbaf3b1d3f0eafec0770238f7534fe6b5 /file.c | |
parent | 0612b830c7c10b48190907d0e38b090178c3838f (diff) | |
download | wireshark-b0c33bd25b65200af0f0ad27acbb610baabbae4e.tar.gz |
Fix bug #2343: Huge increase in Wireshark runtime memory foot print ...
svn path=/trunk/; revision=24595
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -1013,19 +1013,8 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, /* This is the last frame we've seen so far. */ cf->last_displayed = fdata; - /* Setup and copy data into fdata->col_expr.col_expr & .col_expr_val */ - fdata->col_expr.col_expr = - (gchar **) se_alloc(sizeof(gchar *) * cf->cinfo.num_cols); - fdata->col_expr.col_expr_val = - (gchar **) se_alloc(sizeof(gchar *) * cf->cinfo.num_cols); - - for(col = 0; col < cf->cinfo.num_cols; col++) { - fdata->col_expr.col_expr[col] = - se_strdup(cf->cinfo.col_expr.col_expr[col]); - fdata->col_expr.col_expr_val[col] = - se_strdup(cf->cinfo.col_expr.col_expr_val[col]); - - } + fdata->col_expr.col_expr = cf->cinfo.col_expr.col_expr; + fdata->col_expr.col_expr_val = cf->cinfo.col_expr.col_expr_val; row = packet_list_append(cf->cinfo.col_data, fdata); |