summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2008-03-10 07:37:14 +0000
committerStephen Fisher <steve@stephen-fisher.com>2008-03-10 07:37:14 +0000
commitb0c33bd25b65200af0f0ad27acbb610baabbae4e (patch)
treeed7b2b4dbaf3b1d3f0eafec0770238f7534fe6b5 /file.c
parent0612b830c7c10b48190907d0e38b090178c3838f (diff)
downloadwireshark-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.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/file.c b/file.c
index 9620d9c384..e2eaf054fe 100644
--- a/file.c
+++ b/file.c
@@ -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);