aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tds.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-12 16:31:30 +0000
committerEvan Huus <eapache@gmail.com>2013-09-12 16:31:30 +0000
commite5bac80237a9a448623fa60ca150f0336d35f23f (patch)
tree80dea940879de847bc459f3aeaf6b51b203bed39 /epan/dissectors/packet-tds.c
parentd1ee499bc7680d057ee4c638c0881c583a875007 (diff)
Use wmem_new to get the automatic casts to fix the buildbot.
svn path=/trunk/; revision=51973
Diffstat (limited to 'epan/dissectors/packet-tds.c')
-rw-r--r--epan/dissectors/packet-tds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index 01ad088ddf..ad31433cf7 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -1312,7 +1312,7 @@ dissect_tds_col_info_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint of
return FALSE;
}
- nl_data->columns[col] = wmem_alloc(wmem_packet_scope(), sizeof(struct _tds_col));
+ nl_data->columns[col] = wmem_new(wmem_packet_scope(), struct _tds_col);
nl_data->columns[col]->name[0] ='\0';
@@ -1370,7 +1370,7 @@ read_results_tds5(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, gui
cur += 2;
for (i = 0; i < nl_data->num_cols; i++) {
- nl_data->columns[i] = wmem_alloc(wmem_packet_scope(), sizeof(struct _tds_col));
+ nl_data->columns[i] = wmem_new(wmem_packet_scope(), struct _tds_col);
name_len = tvb_get_guint8(tvb,cur);
cur ++;
cur += name_len;